Change ECPair to be compatible with payment({pubkey:ecpair.publicKey})
This commit is contained in:
parent
35adaa8471
commit
b8c2e9e339
2 changed files with 9 additions and 9 deletions
test
|
@ -30,7 +30,7 @@ describe('ECPair', function () {
|
|||
})
|
||||
|
||||
it('calls pointFromScalar lazily', hoodwink(function () {
|
||||
assert.strictEqual(keyPair.__Q, null)
|
||||
assert.strictEqual(keyPair.__Q, undefined)
|
||||
|
||||
// .publicKey forces the memoization
|
||||
assert.strictEqual(keyPair.publicKey.toString('hex'), '0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue