Trevin Hofmann
374e43bed2
Properly capitalize Base58Check and Base58
2015-02-13 21:40:20 -06:00
Manuel Aráoz
6e27dc3a9a
Merge pull request #1043 from eordano/performance/bn
...
Drop inherited and modified BN class for big improvement on performance
2015-02-06 11:28:02 -03:00
Esteban Ordano
73a973359b
Fix invocations to binary operations called on numbers
2015-02-05 17:28:45 -03:00
Esteban Ordano
6b05f20397
Add the new operator when BN was used without it
2015-02-05 16:46:18 -03:00
Esteban Ordano
0bae82fdf4
Add fromBuffer and toBuffer to PrivateKey
2015-02-05 15:05:47 -03:00
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.
2015-01-06 18:51:31 -05:00
Esteban Ordano
4920932db8
Merge pull request #892 from yemel/fix/privatekey-tostring
...
Change PrivateKey.toString from WIF to hex format
2015-01-05 10:02:11 -05:00
Braydon Fuller
c20a0eabed
Check type of parsed JSON to determine it's an object and not a number.
2015-01-02 19:32:49 -05:00
Braydon Fuller
5449ad7bff
Add test case that incorrectly handles hexa string as json
2015-01-02 19:15:20 -05:00
Yemel Jardi
5e292490e8
update tests
2015-01-02 18:25:23 -03:00
Yemel Jardi
dfc32e6712
Fix typo and remove unnecessary test
2014-12-30 19:52:47 -03:00
Yemel Jardi
d5f76e8517
Fix creation of a randomn testnet private key
2014-12-30 18:44:27 -03:00
Esteban Ordano
36e87d8822
PrivateKey, PublicKey, Network linted
...
* Added 100% test coverage for them also
2014-12-19 16:18:05 -03:00
Braydon Fuller
7d15b2bf0f
Private Key: Fix bug with tests and missing "new"
2014-12-17 12:34:21 -05:00
Esteban Ordano
fcc3a1c961
Add tests for importing from WIF
2014-12-15 19:25:09 -03:00
Yemel Jardi
428bcaf4c9
Remove compressed argument from private key and public key constructors
2014-12-15 14:48:17 -03:00
Braydon Fuller
96c7812ed1
PrivateKey: Lodash to check if undefined, and made tests not random (T2)
2014-12-15 10:20:38 -05:00
Braydon Fuller
920f25b58e
Tests: Added bitcoind base58 key data and tests
2014-12-13 16:10:41 -05:00
Braydon Fuller
c0bbf96dc1
Keys: Added toObject method and changed toJSON to return a string
2014-12-12 18:47:15 -05:00
Braydon Fuller
4ddf3d117c
Keys: Modified and added standardized toJSON/fromJSON prototypes
2014-12-12 13:39:49 -05:00
Braydon Fuller
d4d3d4ab4a
PrivateKey: Add documentation and refactor to use network object as a parameter.
2014-12-11 13:21:09 -05:00
Esteban Ordano
f8397a617e
Add option to create private key from hex
2014-12-09 11:40:30 -03:00
Esteban Ordano
baf6a24d23
Add ".publicKey" property to PrivateKey
2014-12-09 11:21:47 -03:00
Esteban Ordano
2b866a8460
Merge pull request #630 from braydonf/feature/immutable
...
Immutable Address, PublicKey and PrivateKey
2014-12-02 12:17:03 -03:00
Braydon Fuller
4ba53fcb92
Tests: Check that PrivateKey is using the defaultNetwork
2014-12-01 18:22:51 -05:00
Braydon Fuller
4adf1fcb14
Network: Replaced all instances of mainnet with livenet for consistency
2014-12-01 17:31:39 -05:00
Braydon Fuller
3298a01498
Immutable Address, PublicKey and PrivateKey
2014-12-01 12:44:32 -05:00
Braydon Fuller
85ce140aeb
Keys: Renamed Privkey to PrivateKey and Pubkey to PublicKey
2014-11-25 13:21:53 -05:00