Braydon Fuller
84cc1a0042
Indicate internal use of getID with an underscore.
10 years ago
Braydon Fuller
b38f7fa319
Added getID to PublicKey
- Tests in BloomFilter in [bitcoin core](https://github.com/bitcoin/bitcoin/blob/master/src/test/bloom_tests.cpp#L85 ) use the CPubKey.GetID as input into the BloomFilter
- The hash is calculated when generating an Address however the hash itself is not currently available
10 years ago
Braydon Fuller
8b505f0cfa
Fixed tests to handle a `defaultNetwork` change
- Updated tests to work for both 'testnet' and 'livenet' as the default network.
- Fixed a bug in Address where the network property was being set as a string.
- Fixed a bug in HDKeys to handle serialized keys when the defaultNetwork changed.
10 years ago
Braydon Fuller
d2a2be7a93
Upgraded bn.js to fix public key calculation problem, restored crypto/point.js, and added additional tests.
10 years ago
Braydon Fuller
3de6acc176
Add tests that reveals incorrect public key calculation
10 years ago
Esteban Ordano
901d836231
Add default network to PublicKey
Closes #871
10 years ago
Esteban Ordano
4980f7a646
Test coverage: last branch untested from PublicKey
10 years ago
Esteban Ordano
36e87d8822
PrivateKey, PublicKey, Network linted
* Added 100% test coverage for them also
10 years ago
Braydon Fuller
e3fa89ce62
PublicKey: Fix formatting issue for inspect
10 years ago
Yemel Jardi
428bcaf4c9
Remove compressed argument from private key and public key constructors
10 years ago
Braydon Fuller
c0bbf96dc1
Keys: Added toObject method and changed toJSON to return a string
10 years ago
Braydon Fuller
4ddf3d117c
Keys: Modified and added standardized toJSON/fromJSON prototypes
10 years ago
Esteban Ordano
0c28bc1786
Split buildPKH arguments, add Copy constructor on publickey
10 years ago
Braydon Fuller
ae80ca8678
PublicKey: Add test to verify that both uncompressed an compressed keys validatate. Fixes #665
10 years ago
Braydon Fuller
d5d88287cd
Networks: Consistency of network reference for 'livenet', and removed hardcoded value.
10 years ago
Braydon Fuller
b06866f86f
PublicKey: Added toAddress prototype. Closes #599
10 years ago
Braydon Fuller
9a76bf30ff
Crypto/Point: Added test coverage and documentation, and refactored validation
10 years ago
Braydon Fuller
85ce140aeb
Keys: Renamed Privkey to PrivateKey and Pubkey to PublicKey
10 years ago
Braydon Fuller
35d0cbc5a6
Keys: Modified interface of Pubkey and Privkey so that an instance can be relied upon as valid.
10 years ago
Manuel Araoz
a45dee3a4b
'hide' encoding and crypto
10 years ago
Manuel Araoz
1477572a04
fix bitcore reference
10 years ago
Manuel Araoz
b2ef61328f
fix tests for pubkey
10 years ago
Ryan X. Charles
d6e3266179
toJSON/fromJSON for privkey, pubkey, keypair
10 years ago
Ryan X. Charles
543762bc67
fromBuffer convenience function for pubkey
10 years ago
Ryan X. Charles
a768755764
convenience: new Pubkey(point)
10 years ago
Ryan X. Charles
bdb8daaf07
remove redundant "test." from test names
11 years ago
Ryan X. Charles
5313085773
Pubkey().fromPrivkey()
11 years ago
Ryan X. Charles
e2824035bb
Pubkey.prototype.set
11 years ago
Ryan X. Charles
4cff6a41f4
remove "(classname): " from tests
...to reduce the burden on writing new code
11 years ago
Ryan X. Charles
9cc214cf06
capitalize classes in tests
11 years ago
Ryan X. Charles
a2e471ae9e
more consistency: n -> bn, p -> point
11 years ago
Ryan X. Charles
9649cc58e9
bip32
code from bitcore. original implementation derived from here:
https://github.com/sarchar/brainwallet.github.com/blob/bip32/js/bip32.js
11 years ago
Ryan X. Charles
c4064cc6e1
ecdsa
11 years ago
Ryan X. Charles
448f532738
pubkey
11 years ago