mirror of
https://github.com/ok2/coinbin.git
synced 2026-05-10 02:25:21 +02:00
couple of minor updates
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@
|
||||
coinjs.compressed = false;
|
||||
|
||||
/* other vars */
|
||||
coinjs.developer = '1CWHWkTWaq1K5hevimJia3cyinQsrgXUvg'; // bitcoin
|
||||
coinjs.developer = '3K1oFZMks41C7qDYBsr72SYjapLqDuSYuN'; //bitcoin
|
||||
|
||||
/* bit(coinb.in) api vars */
|
||||
coinjs.host = ('https:'==document.location.protocol?'https://':'http://')+'coinb.in/api/';
|
||||
|
||||
+8
-3
@@ -1475,10 +1475,15 @@ $(document).ready(function() {
|
||||
var pubkey = $("#verifyScript").val();
|
||||
if(pubkey.length==66 || pubkey.length==130){
|
||||
try {
|
||||
$("#verifyPubKey .verifyDataSw").addClass('hidden');
|
||||
$("#verifyPubKey .address").val(coinjs.pubkey2address(pubkey));
|
||||
var sw = coinjs.segwitAddress(pubkey);
|
||||
$("#verifyPubKey .addressSegWit").val(sw.address);
|
||||
$("#verifyPubKey .addressSegWitRedeemScript").val(sw.redeemscript);
|
||||
if(pubkey.length == 66){
|
||||
var sw = coinjs.segwitAddress(pubkey);
|
||||
$("#verifyPubKey .addressSegWit").val(sw.address);
|
||||
$("#verifyPubKey .addressSegWitRedeemScript").val(sw.redeemscript);
|
||||
|
||||
$("#verifyPubKey .verifyDataSw").removeClass('hidden');
|
||||
}
|
||||
$("#verifyPubKey").removeClass("hidden");
|
||||
$(".verifyLink").attr('href','?verify='+$("#verifyScript").val());
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user