mirror of
https://github.com/ok2/coinbin.git
synced 2026-05-09 18:15:23 +02:00
added segwit redeemscript to wallet, fixed typo, added links
This commit is contained in:
@@ -35,9 +35,13 @@ $(document).ready(function() {
|
||||
var pubkey = keys.pubkey;
|
||||
var privkeyaes = CryptoJS.AES.encrypt(keys.wif, pass);
|
||||
|
||||
$("#walletKeys .walletSegWitRS").addClass("hidden");
|
||||
if($("#walletSegwit").is(":checked")){
|
||||
var sw = coinjs.segwitAddress(pubkey);
|
||||
address = sw.address;
|
||||
|
||||
$("#walletKeys .walletSegWitRS").removeClass("hidden");
|
||||
$("#walletKeys .walletSegWitRS input:text").val(sw.redeemscript);
|
||||
}
|
||||
|
||||
$("#walletAddress").html(address);
|
||||
|
||||
Reference in New Issue
Block a user