Esteban Ordano
6b05f20397
Add the new operator when BN was used without it
10 years ago
Braydon Fuller
84cc1a0042
Indicate internal use of getID with an underscore.
10 years ago
Braydon Fuller
81fa162a7f
Fix .jshintrc and add missing semis
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
Yemel Jardi
e57d02c03c
Use define immutable helper
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
Yemel Jardi
ff844e9935
Change PrivateKey.toString from WIF to hex format
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
6d42e01718
Fix formatting issue with examples
10 years ago
Esteban Ordano
ed9a9f6da9
Fix wrong jsdocs
10 years ago
Braydon Fuller
e3fa89ce62
PublicKey: Fix formatting issue for inspect
10 years ago
Manuel Araoz
3eba0bc546
address review comments
10 years ago
Manuel Araoz
7683d2c2ed
fix post-rebase confilcts
10 years ago
Manuel Araoz
ddd11e908c
all script_valid tests passing!
10 years ago
Manuel Araoz
0ddec23c02
fix some more tests
10 years ago
Manuel Araoz
6a0512e1bf
pass some more tests
10 years ago
Esteban Ordano
48ce24dfbe
Fix tests to allow network on public keys
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
0e7f5e89f2
Fixed issue with js util naming
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
012466d411
PublicKey: Remove compressed boolean from validation, not nessassary.
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
3298a01498
Immutable Address, PublicKey and PrivateKey
10 years ago
Braydon Fuller
9a76bf30ff
Crypto/Point: Added test coverage and documentation, and refactored validation
10 years ago
Esteban Ordano
950ea6ed1a
Add public key
10 years ago
Braydon Fuller
95b489c306
JSDoc: Update Address, PublicKey and PrivateKey so that they are documented.
10 years ago
Braydon Fuller
7de28610a5
Keys: Fix browser data types
10 years ago
Braydon Fuller
2a2dc8196d
Crypto: Update ECDSA with to use PrivateKey and PublicKey
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
ca9b8d8f7b
use strict to protocol
10 years ago
Manuel Araoz
2bf1ed8f34
use strict to crypto
10 years ago
Manuel Araoz
6f2913eed4
fix references
10 years ago
Eric Martindale
4b6e9aaf03
Improve tests.
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
073ee0a0e4
fix: Pubkey(point) and Privkey(bn)
10 years ago
Ryan X. Charles
a768755764
convenience: new Pubkey(point)
10 years ago
Ryan X. Charles
5313085773
Pubkey().fromPrivkey()
11 years ago
Ryan X. Charles
e2824035bb
Pubkey.prototype.set
11 years ago
Ryan X. Charles
7c945cdc01
add "compressed" feature to pubkeys
...not just privkeys. since, of course, they can be compressed or uncompressed.
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
f6f7a870fb
allow creating objects without using "new"
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