Added direct double SHA computation

This commit is contained in:
tripathyr 2022-09-21 15:31:49 +05:30 committed by GitHub
parent 1d08007754
commit 4579562765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2651,6 +2651,11 @@
return coinjs.verifySignature(h1, s1, p2);
}
coinjs.dSHA256 = function(data){
return Crypto.SHA256(Crypto.util.hexToBytes(Crypto.SHA256(data)));
}
coinjs.random = function (length) {
var r = "";
var l = length || 25;