|
|
@ -255,7 +255,7 @@ describe('ECPair', function () { |
|
|
|
it('wraps ecdsa.verify', hoodwink(function () { |
|
|
|
this.mock(ecdsa, 'verify', function (h, s, q) { |
|
|
|
assert.strictEqual(h, hash) |
|
|
|
// assert.strictEqual(s, signature)
|
|
|
|
// assert.strictEqual(s, signature)
|
|
|
|
assert.deepEqual(s, { |
|
|
|
r: BigInteger.fromBuffer(signature.slice(0, 32)), |
|
|
|
s: BigInteger.fromBuffer(signature.slice(32, 64)) |
|
|
|