display base58 address in addition to public key when decoding redeem script
This commit is contained in:
parent
8fed2612d5
commit
da2d20f477
1 changed files with 3 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue