Merge branch 'main' of https://github.com/ranchimall/btc-webwallet
This commit is contained in:
commit
2b4e77c6ea
@ -2651,6 +2651,15 @@
|
||||
|
||||
return coinjs.verifySignature(h1, s1, p2);
|
||||
}
|
||||
|
||||
coinjs.dSHA256 = function(data){
|
||||
var t1,t2,t3 ;
|
||||
t1= Crypto.SHA256(Crypto.util.hexToBytes(data));
|
||||
t2= Crypto.util.hexToBytes(t1);
|
||||
t3= Crypto.SHA256(t2);
|
||||
return t3;
|
||||
}
|
||||
|
||||
coinjs.random = function (length) {
|
||||
var r = "";
|
||||
var l = length || 25;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user