update the qrcode too
This commit is contained in:
parent
f53baa3de8
commit
83c6e45bb2
1 changed files with 3 additions and 2 deletions
|
@ -26,10 +26,11 @@
|
||||||
var bech32Address = bech32.encode('bc', bech32_words);
|
var bech32Address = bech32.encode('bc', bech32_words);
|
||||||
var bitcoinAddress = key.getBitcoinAddress();
|
var bitcoinAddress = key.getBitcoinAddress();
|
||||||
var privateKeyWif = key.getBitcoinWalletImportFormat();
|
var privateKeyWif = key.getBitcoinWalletImportFormat();
|
||||||
document.getElementById("btcaddress").innerHTML = opt_bech32 ? bech32Address : bitcoinAddress;
|
address = opt_bech32 ? bech32Address : bitcoinAddress
|
||||||
|
document.getElementById("btcaddress").innerHTML = address;
|
||||||
document.getElementById("btcprivwif").innerHTML = privateKeyWif;
|
document.getElementById("btcprivwif").innerHTML = privateKeyWif;
|
||||||
var keyValuePair = {
|
var keyValuePair = {
|
||||||
"qrcode_public": bitcoinAddress,
|
"qrcode_public": address,
|
||||||
"qrcode_private": privateKeyWif
|
"qrcode_private": privateKeyWif
|
||||||
};
|
};
|
||||||
qrCode.showQrCode(keyValuePair, 4);
|
qrCode.showQrCode(keyValuePair, 4);
|
||||||
|
|
Loading…
Reference in a new issue