contract/lib/BeanUser.js
/**
     * Generate the sender's public key hash value
     * A hash SHA-256 of keys.publicArmored
     * @param {BeanUser} user Source object to generate hash for Public Key.
     */
Generate the sender's public key hash value
A hash SHA-256 of keys.publicArmored
@param {BeanUser} user Source object to generate hash for Public Key.
Generate the sender ' s public key hash value A hash SHA - 256 of keys . publicArmored @param { BeanUser } user Source object to generate hash for Public Key .
static generateHashForPublicId(user){
        let publicId = '';
        if(user.publicId == undefined){
            let hashFactory = crypto.createHash(sha256);
            publicId = hashFactory.update(user.keys.publicArmored).digest(hex);
        }
        return publicId;
    }
static generateHashForPublicId ( user ) { let publicId = '' ; if ( user . publicId == undefined ) { let hashFactory = crypto . createHash ( sha256 ) ; publicId = hashFactory . update ( user . keys . publicArmored ) . digest ( hex ) ; } return publicId ; }
Generate the sender's public key hash value
 A hash SHA-256 of keys.publicArmored
 @param {BeanUser} user Source object to generate hash for Public Key.
Generate the sender ' s public key hash value A hash SHA - 256 of keys . publicArmored @param { BeanUser } user Source object to generate hash for Public Key .