Trevin Hofmann
374e43bed2
Properly capitalize Base58Check and Base58
10 years ago
Esteban Ordano
73a973359b
Fix invocations to binary operations called on numbers
10 years ago
Esteban Ordano
6b05f20397
Add the new operator when BN was used without it
10 years ago
Esteban Ordano
0bae82fdf4
Add fromBuffer and toBuffer to PrivateKey
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
c20a0eabed
Check type of parsed JSON to determine it's an object and not a number.
10 years ago
Braydon Fuller
5449ad7bff
Add test case that incorrectly handles hexa string as json
10 years ago
Yemel Jardi
5e292490e8
update tests
10 years ago
Yemel Jardi
dfc32e6712
Fix typo and remove unnecessary test
10 years ago
Yemel Jardi
d5f76e8517
Fix creation of a randomn testnet private key
10 years ago
Esteban Ordano
36e87d8822
PrivateKey, PublicKey, Network linted
* Added 100% test coverage for them also
10 years ago
Braydon Fuller
7d15b2bf0f
Private Key: Fix bug with tests and missing "new"
10 years ago
Esteban Ordano
fcc3a1c961
Add tests for importing from WIF
10 years ago
Yemel Jardi
428bcaf4c9
Remove compressed argument from private key and public key constructors
10 years ago
Braydon Fuller
96c7812ed1
PrivateKey: Lodash to check if undefined, and made tests not random (T2)
10 years ago
Braydon Fuller
920f25b58e
Tests: Added bitcoind base58 key data and tests
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
Braydon Fuller
d4d3d4ab4a
PrivateKey: Add documentation and refactor to use network object as a parameter.
10 years ago
Esteban Ordano
f8397a617e
Add option to create private key from hex
10 years ago
Esteban Ordano
baf6a24d23
Add ".publicKey" property to PrivateKey
10 years ago
Braydon Fuller
4ba53fcb92
Tests: Check that PrivateKey is using the defaultNetwork
10 years ago
Braydon Fuller
4adf1fcb14
Network: Replaced all instances of mainnet with livenet for consistency
10 years ago
Braydon Fuller
3298a01498
Immutable Address, PublicKey and PrivateKey
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
Braydon Fuller
23c1ed3599
Keys: Refactored to use Pubkey and Privkey and removed Keypair
10 years ago
Manuel Araoz
a45dee3a4b
'hide' encoding and crypto
10 years ago
Manuel Araoz
3ac26759e4
fix tests for privkey
10 years ago
Ryan X. Charles
d6e3266179
toJSON/fromJSON for privkey, pubkey, keypair
10 years ago
Ryan X. Charles
6f56c8d1fc
convenience: new Privkey(bn)
10 years ago
Ryan X. Charles
bdb8daaf07
remove redundant "test." from test names
11 years ago
Ryan X. Charles
40e8dfec06
compressed by default with fromRandom
11 years ago
Ryan X. Charles
c39acbcca3
Privkey().fromRandom()
11 years ago
Ryan X. Charles
280578d641
network -> networkstr
...for compatibility with address, and to make the types obvious
11 years ago
Ryan X. Charles
109f31cfdb
Privkey.prototype.set
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
c00f1ebeea
standardize capitalization in test describes
11 years ago
Ryan X. Charles
3df3d41434
privkey
11 years ago