How to use the recoverPubKey function from bindings
Find comprehensive JavaScript bindings.recoverPubKey code examples handpicked from public code repositorys.
GitHub: potcoin/potcore
55 56 57 58 59 60 61 62 63 64
var sigDER = Key.rs2DER(r, s); var e = bignum.fromBuffer(hash); var key = new Key(); var pub = Key.recoverPubKey(e, r, s, i); var pubbuf = pub.toCompressedPubKey(); key.public = pubbuf; var pubkeyhash2 = coinUtil.sha256ripe160(pubbuf);
5
2
0
+ 7 other calls in file
bindings.createKey is the most popular function in bindings (8616 examples)