Change ECPair to be compatible with payment({pubkey:ecpair.publicKey})

This commit is contained in:
junderw 2018-12-30 11:23:28 +09:00
parent 35adaa8471
commit b8c2e9e339
No known key found for this signature in database
GPG key ID: B256185D3A971908
2 changed files with 9 additions and 9 deletions

View file

@ -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')