junderw
6 years ago
No known key found for this signature in database
GPG Key ID: B256185D3A971908
1 changed files with
2 additions and
2 deletions
-
test/integration/addresses.js
|
|
@ -95,8 +95,8 @@ describe('bitcoinjs-lib (addresses)', function () { |
|
|
|
const keyPair = bitcoin.ECPair.makeRandom({ network: TESTNET }) |
|
|
|
const { address } = bitcoin.payments.p2pkh({ pubkey: keyPair.publicKey, network: TESTNET }) |
|
|
|
|
|
|
|
// bitcoin testnet P2PKH addresses start with a 'm'
|
|
|
|
assert.strictEqual(address.startsWith('m'), true) |
|
|
|
// bitcoin testnet P2PKH addresses start with a 'm' or 'n'
|
|
|
|
assert.strictEqual(address.startsWith('m') || address.startsWith('n'), true) |
|
|
|
}) |
|
|
|
|
|
|
|
it('can generate a Litecoin address', function () { |
|
|
|