mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Fix typo
This commit is contained in:
@@ -17,7 +17,7 @@ sjcl.ecc.ecdsa.publicKey.prototype = {
|
|||||||
l = R.bitLength(),
|
l = R.bitLength(),
|
||||||
r = sjcl.bn.fromBits(w.bitSlice(rs,0,l)),
|
r = sjcl.bn.fromBits(w.bitSlice(rs,0,l)),
|
||||||
s = sjcl.bn.fromBits(w.bitSlice(rs,l,2*l)),
|
s = sjcl.bn.fromBits(w.bitSlice(rs,l,2*l)),
|
||||||
sInv = s.modInverse(R),
|
sInv = s.inverseMod(R),
|
||||||
hG = sjcl.bn.fromBits(hash).mul(sInv).mod(R),
|
hG = sjcl.bn.fromBits(hash).mul(sInv).mod(R),
|
||||||
hA = r.mul(sInv).mod(R),
|
hA = r.mul(sInv).mod(R),
|
||||||
r2 = this._curve.G.mult2(hG, hA, this._point).x;
|
r2 = this._curve.G.mult2(hG, hA, this._point).x;
|
||||||
|
|||||||
Reference in New Issue
Block a user