Testing uncompressed private keys on mainnet.
This commit is contained in:
parent
61a29cf7ea
commit
a9f2794d11
1 changed files with 17 additions and 0 deletions
|
|
@ -255,4 +255,21 @@ fdescribe('bitcoinUriService', function() {
|
|||
expect(parsed.isValid).toBe(false);
|
||||
});
|
||||
|
||||
it('private key uncompressed mainnet', function() {
|
||||
|
||||
var parsed = bitcoinUriService.parse('L18V3rAhCKEioPnJ4BHLCCsaYa8eSNFrMjNQ2EdwgeAdmBSnTMwx');
|
||||
|
||||
expect(parsed.isValid).toBe(true);
|
||||
expect(parsed.wifPrivateKey).toBe('L18V3rAhCKEioPnJ4BHLCCsaYa8eSNFrMjNQ2EdwgeAdmBSnTMwx');
|
||||
});
|
||||
|
||||
it('private key uncompressed mainnet with wrong checksum', function() {
|
||||
|
||||
var parsed = bitcoinUriService.parse('L18V3rAhCKEioPnJ4BHLCCsaYa8eSNFrMjNQ2EdwgeAdmBSnTTwx');
|
||||
|
||||
expect(parsed.isValid).toBe(false);
|
||||
});
|
||||
|
||||
// TODO: Tests for private key variations. (testnet)
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue