mirror of
https://github.com/ok2/coinbin.git
synced 2026-05-10 02:25:21 +02:00
minor link bug fix, as well as some changes to allow the use of alt coins with out throwing an error
This commit is contained in:
+8
-7
@@ -810,8 +810,11 @@ $(document).ready(function() {
|
||||
|
||||
function decodeHDaddress(){
|
||||
var s = $("#verifyScript").val();
|
||||
if(s.match(/^x[prv|pub]/)){
|
||||
try {
|
||||
try {
|
||||
var hex = Crypto.util.bytesToHex((coinjs.base58decode(s)).slice(0,4));
|
||||
var hex_cmp_prv = Crypto.util.bytesToHex((coinjs.numToBytes(coinjs.hdkey.prv,4)).reverse());
|
||||
var hex_cmp_pub = Crypto.util.bytesToHex((coinjs.numToBytes(coinjs.hdkey.pub,4)).reverse());
|
||||
if(hex == hex_cmp_prv || hex == hex_cmp_pub){
|
||||
var hd = coinjs.hd(s);
|
||||
$("#verifyHDaddress .hdKey").html(s);
|
||||
$("#verifyHDaddress .chain_code").val(Crypto.util.bytesToHex(hd.chain_code));
|
||||
@@ -826,9 +829,9 @@ $(document).ready(function() {
|
||||
$(".verifyLink").attr('href','?verify='+$("#verifyScript").val());
|
||||
$("#verifyHDaddress").removeClass("hidden");
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -907,6 +910,7 @@ $(document).ready(function() {
|
||||
return r;
|
||||
}
|
||||
|
||||
$("#newKeysBtn, #newHDKeysBtn").click();
|
||||
|
||||
var _getBroadcast = _get("broadcast");
|
||||
if(_getBroadcast[0]){
|
||||
@@ -966,9 +970,6 @@ $(document).ready(function() {
|
||||
$(".pubkeyAdd").click();
|
||||
}
|
||||
|
||||
$("#newKeysBtn, #newHDKeysBtn").click();
|
||||
|
||||
|
||||
validateOutputAmount();
|
||||
|
||||
/* capture mouse movement to add entropy */
|
||||
|
||||
Reference in New Issue
Block a user