Skip to content

Commit 4cd2303

Browse files
committed
Remove debug log, fix incomplete comment
1 parent 48ce627 commit 4cd2303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/fetchEccKeysAndVerify.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ Promise.all(keyRequests).then(() => {
104104
if (err) {
105105
return reject(err);
106106
}
107-
// console.log(km.pgp.key(km.pgp.primary).get_fingerprint().toString('hex'));
108107
importedPgpKeys[km.pgp.key(km.pgp.primary).get_fingerprint().toString('hex')] = km;
109108
return resolve();
110109
});
@@ -170,7 +169,8 @@ Promise.all(keyRequests).then(() => {
170169
console.log('----\nValid keymap for use in bitcoinRpc example:');
171170

172171
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
174174
let a = crypto.createHash('sha256').update(pubkey, 'hex').digest();
175175
let b = crypto.createHash('rmd160').update(a).digest('hex');
176176
let c = '00' + b; // This is assuming livenet

0 commit comments

Comments
 (0)