Browse Source

print the public key

patch-2
Ryan X. Charles 10 years ago
parent
commit
a095341a07
  1. 2
      examples/stealthmessage.js

2
examples/stealthmessage.js

@ -37,6 +37,8 @@ console.log('The randomly generated address the message is to: ' + address);
var pubkey = Pubkey().fromDER(encbuf.slice(20, 20 + 33));
console.log('Nonce public key: ' + pubkey);
//The owner of the stealth key can check to see if it is for them.
console.log('Is the message for me? ' + (StealthMessage.isForMe(encbuf, sk) ? "yes" : "no"));

Loading…
Cancel
Save