Skip to content

Commit b0e502a

Browse files
committed
display public key as BTC livenet key
1 parent c49daa3 commit b0e502a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playground/playground.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@
858858
var signed = null;
859859
var publicKeyFromPrivateKey;
860860
try {
861-
publicKeyFromPrivateKey = new bitcoreMessage.Bitcore.PrivateKey(privateKey).toPublicKey();
861+
publicKeyFromPrivateKey = new bitcoreMessage.Bitcore.PrivateKey(privateKey).toPublicKey().toAddress('livenet');
862862
} catch (e) {
863863
promise = Promise.reject(e)
864864
}

0 commit comments

Comments
 (0)