File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ Promise.all(keyRequests).then(() => {
104
104
if ( err ) {
105
105
return reject ( err ) ;
106
106
}
107
- // console.log(km.pgp.key(km.pgp.primary).get_fingerprint().toString('hex'));
108
107
importedPgpKeys [ km . pgp . key ( km . pgp . primary ) . get_fingerprint ( ) . toString ( 'hex' ) ] = km ;
109
108
return resolve ( ) ;
110
109
} ) ;
@@ -170,7 +169,8 @@ Promise.all(keyRequests).then(() => {
170
169
console . log ( '----\nValid keymap for use in bitcoinRpc example:' ) ;
171
170
172
171
parsedEccPayload . publicKeys . forEach ( ( pubkey ) => {
173
- // Here we are just generating the pubkey hash (btc address) of the
172
+ // Here we are just generating the pubkey hash (btc address) of each of the public keys received for easy lookup later
173
+ // as this is what will be provided by the x-identity header
174
174
let a = crypto . createHash ( 'sha256' ) . update ( pubkey , 'hex' ) . digest ( ) ;
175
175
let b = crypto . createHash ( 'rmd160' ) . update ( a ) . digest ( 'hex' ) ;
176
176
let c = '00' + b ; // This is assuming livenet
You can’t perform that action at this time.
0 commit comments