Ryan X. Charles
c2e5a14eed
throw error when using invalid length hash in Address
I have often made the error of using a public key rather than the hash of the
public key when creating an address, leading to invalid addresses. I'm sure I'm
not the only one. This commit follows the principle of "fail early, fail often"
and simply throws an error if you try to insert something other than 20 bytes
long when creating an address, which would be the case when using a public key.
This way that common mistake should be reduced.
11 years ago
Ryan X. Charles
772b12e471
Merge pull request #377 from cmgustavo/feature/fee-constant
Exporting a constant on TransactionBuilder for use on Copay
11 years ago
Manuel Aráoz
2b7fb8a1dc
Merge pull request #378 from ryanxcharles/bug/hierarchicalkey-example
fix HierarchicalKey example to properly generate addresses
11 years ago
Ryan X. Charles
a11e308aee
fix example
An address is actually the hash of a public key, not the public key.
11 years ago
Gustavo Cortez
1d957b24d9
Exporting a constant on TransactionBuilder for use on Copay (to check available funds to spend). A simple test for this.
11 years ago
Manuel Aráoz
4c3d6dbec0
Merge pull request #376 from ryanxcharles/bug/hierarchicalkey-tests
run HierarchicalKey tests in the browser
11 years ago
Ryan X. Charles
474de613c0
Merge pull request #375 from matiu/feature/bit
adds the BIT constant
11 years ago
Ryan X. Charles
895a512e55
run HierarchicalKey tests in the browser
...not BIP32, which is the old name for HierarchicalKey
11 years ago
Matias Alejo Garcia
d751ed8a57
adds the BIT constant
11 years ago
Devrandom
b523eee812
Switch BIP-0039 to sjcl in browser
11 years ago
Devrandom
79d50e92d4
BIP39 in browser
11 years ago
Devrandom
f2472e691b
Separate out BIP39
11 years ago
Devrandom
63f7e3d062
BIP39 implementation
11 years ago
Ryan X. Charles
ddd52c2025
Merge pull request #372 from ryanxcharles/feature/ECIES-example
add ECIES example
11 years ago
Ryan X. Charles
261a94d806
add ECIES example
11 years ago
Ryan X. Charles
6aef44e98a
up version to 0.1.23
11 years ago
Ryan X. Charles
338158ca46
fix sjcl issue on npm install
...by including sjcl locally
11 years ago
Ryan X. Charles
1e97ab8c6d
move devDependencies to dependencies to fix install issue
11 years ago
Ryan X. Charles
c488268a3c
update version to 0.1.22
11 years ago
Ryan X. Charles
2dac2b1f47
Merge pull request #362 from ryanxcharles/feature/ECIES
add ECIES support
11 years ago
Ryan X. Charles
9ee3f23e4e
Merge pull request #369 from maraoz/add/coveralls
add coveralls
11 years ago
Ryan X. Charles
80ccaa8396
rename "rand" to more explanatory "getRandomSeed"
11 years ago
Manuel Araoz
5c449390ac
add badge
11 years ago
Manuel Araoz
f2fc616cc9
add coveralls
11 years ago
Ryan X. Charles
b8986ed0e1
Merge pull request #357 from ionux/master
Fix to check for zero s value in sign function
11 years ago
Ryan X. Charles
5172b3160b
add test to confirm correctness of sha512hmac
11 years ago
Ryan X. Charles
410cd503c8
remove unused commander dependency
11 years ago
Ryan X. Charles
117eaa4288
remove underscore dependency to decrease bundle size
11 years ago
Ryan X. Charles
a242112e66
replace jssha with sjcl - remove jssha dependency
11 years ago
Manuel Aráoz
e71cdb3bb2
Merge pull request #366 from gabegattis/bug/BIP32SeedLength
Bug/bip32 seed length
11 years ago
Gabe
a374b58271
fix bad test, bytes!=bits
11 years ago
Gabe
8e96d1439d
check if seed is greater than 512 bits
11 years ago
Ryan X. Charles
af9fdff3a9
use SJCL AES to get ECIES working in the browser
11 years ago
Ryan X. Charles
e963ff3c45
add ECIES support in node - not browser
11 years ago
Manuel Aráoz
4d8af75ae9
Merge pull request #361 from dthorpe/VanityAddress
Change Address.forKey() to Address.fromKey()
11 years ago
dthorpe
04d6366c11
Change Address.forKey() to Address.fromKey()
11 years ago
Rich Morgan
eab5c2896e
Fix to check for zero s value in sign function
If r OR s are zero then recalculate both r and s until they are both non-zero values.
11 years ago
Ryan X. Charles
bc84d1e82b
Merge pull request #351 from matiu/bug/minor-bug-in-address-FromScript
fix .fromScriptPubKey parsing in some strange Txs
11 years ago
Matias Alejo Garcia
c9694c5768
rm console.log
11 years ago
Manuel Aráoz
6c7f45dcd2
Merge pull request #355 from matiu/bug/peermanager-log
change log in checkStatus to .debug
11 years ago
Matias Alejo Garcia
e60e389e43
add more strict checking, plus tests
11 years ago
Matias Alejo Garcia
349143ba02
change log in checkStatus to .debug
11 years ago
Matias Alejo Garcia
56e7739a46
reverse changes in address
11 years ago
Matias Alejo Garcia
be02d41ac2
fix isMultiSig
11 years ago
Matias Alejo Garcia
ddd1476a39
fix buffer
11 years ago
Matias Alejo Garcia
691fec5342
fix .fromScriptPubKey parsing in some strange Txs
11 years ago
Ryan X. Charles
5594f82398
up version to 0.1.21
...to make sure compiled bundle is absolutely the latest.
11 years ago
Ryan X. Charles
9fb34f5033
print out string, not buffer
11 years ago
Ryan X. Charles
a679235e46
up bower version #
11 years ago
Ryan X. Charles
1361bd2939
fix npm install issue and up version
Bitcore in Copay is not being installed correctly due to changes we made
recently in the way bitcore is compiled (it is not compiled on install, but on
prepublish). This adds all the bundles to the repo to fix that issue.
11 years ago