display base58 address in addition to public key when decoding redeem script

This commit is contained in:
bulldozer2003 2015-06-19 12:13:15 -05:00
parent 8fed2612d5
commit da2d20f477

View file

@ -670,7 +670,9 @@ $(document).ready(function() {
$("#verifyRsData .signaturesRequired").html(decode['signaturesRequired']); $("#verifyRsData .signaturesRequired").html(decode['signaturesRequired']);
$("#verifyRsData table tbody").html(""); $("#verifyRsData table tbody").html("");
for(var i=0;i<decode.pubkeys.length;i++){ for(var i=0;i<decode.pubkeys.length;i++){
$('<tr><td><input type="text" class="form-control" value="'+decode.pubkeys[i]+'" readonly></td></tr>').appendTo("#verifyRsData table tbody"); var pubkey = decode.pubkeys[i];
var address = coinjs.pubkey2address(pubkey);
$('<tr><td width="30%"><input type="text" class="form-control" value="'+address+'" readonly></td><td><input type="text" class="form-control" value="'+pubkey+'" readonly></td></tr>').appendTo("#verifyRsData table tbody");
} }
$("#verifyRsData").removeClass("hidden"); $("#verifyRsData").removeClass("hidden");
$(".verifyLink").attr('href','?verify='+$("#verifyScript").val()); $(".verifyLink").attr('href','?verify='+$("#verifyScript").val());