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.
2014-06-11 18:13:39 -07:00
Ryan X. Charles
772b12e471
Merge pull request #377 from cmgustavo/feature/fee-constant
...
Exporting a constant on TransactionBuilder for use on Copay
2014-06-11 15:38:50 -07:00
Manuel Aráoz
2b7fb8a1dc
Merge pull request #378 from ryanxcharles/bug/hierarchicalkey-example
...
fix HierarchicalKey example to properly generate addresses
2014-06-11 19:33:05 -03:00
Ryan X. Charles
a11e308aee
fix example
...
An address is actually the hash of a public key, not the public key.
2014-06-11 15:17:01 -07:00
Gustavo Cortez
1d957b24d9
Exporting a constant on TransactionBuilder for use on Copay (to check available funds to spend). A simple test for this.
2014-06-11 19:00:11 -03:00
Manuel Aráoz
4c3d6dbec0
Merge pull request #376 from ryanxcharles/bug/hierarchicalkey-tests
...
run HierarchicalKey tests in the browser
2014-06-11 18:39:16 -03:00
Ryan X. Charles
474de613c0
Merge pull request #375 from matiu/feature/bit
...
adds the BIT constant
2014-06-11 14:30:34 -07:00
Ryan X. Charles
895a512e55
run HierarchicalKey tests in the browser
...
...not BIP32, which is the old name for HierarchicalKey
2014-06-11 14:28:30 -07:00
Matias Alejo Garcia
d751ed8a57
adds the BIT constant
2014-06-11 18:15:17 -03:00
Devrandom
b523eee812
Switch BIP-0039 to sjcl in browser
2014-06-08 13:30:47 -07:00
Devrandom
79d50e92d4
BIP39 in browser
2014-06-08 12:43:05 -07:00
Devrandom
f2472e691b
Separate out BIP39
2014-06-08 12:41:37 -07:00
Devrandom
63f7e3d062
BIP39 implementation
2014-06-08 12:40:28 -07:00
Ryan X. Charles
ddd52c2025
Merge pull request #372 from ryanxcharles/feature/ECIES-example
...
add ECIES example
2014-06-06 15:59:11 -07:00
Ryan X. Charles
261a94d806
add ECIES example
2014-06-06 14:34:42 -07:00
Ryan X. Charles
6aef44e98a
up version to 0.1.23
2014-06-06 11:52:44 -07:00
Ryan X. Charles
338158ca46
fix sjcl issue on npm install
...
...by including sjcl locally
2014-06-06 11:49:58 -07:00
Ryan X. Charles
1e97ab8c6d
move devDependencies to dependencies to fix install issue
2014-06-06 09:24:04 -07:00
Ryan X. Charles
c488268a3c
update version to 0.1.22
2014-06-06 08:37:42 -07:00
Ryan X. Charles
2dac2b1f47
Merge pull request #362 from ryanxcharles/feature/ECIES
...
add ECIES support
2014-06-05 20:31:08 -07:00
Ryan X. Charles
9ee3f23e4e
Merge pull request #369 from maraoz/add/coveralls
...
add coveralls
2014-06-05 19:35:25 -07:00
Ryan X. Charles
80ccaa8396
rename "rand" to more explanatory "getRandomSeed"
2014-06-05 16:41:47 -07:00
Manuel Araoz
5c449390ac
add badge
2014-06-05 16:44:32 -03:00
Manuel Araoz
f2fc616cc9
add coveralls
2014-06-05 16:43:07 -03:00
Ryan X. Charles
b8986ed0e1
Merge pull request #357 from ionux/master
...
Fix to check for zero s value in sign function
2014-06-05 12:24:19 -07:00
Ryan X. Charles
5172b3160b
add test to confirm correctness of sha512hmac
2014-06-04 18:57:26 -07:00
Ryan X. Charles
410cd503c8
remove unused commander dependency
2014-06-04 18:57:15 -07:00
Ryan X. Charles
117eaa4288
remove underscore dependency to decrease bundle size
2014-06-04 18:43:00 -07:00
Ryan X. Charles
a242112e66
replace jssha with sjcl - remove jssha dependency
2014-06-04 18:13:32 -07:00
Manuel Aráoz
e71cdb3bb2
Merge pull request #366 from gabegattis/bug/BIP32SeedLength
...
Bug/bip32 seed length
2014-06-04 15:19:28 -03:00
Gabe
a374b58271
fix bad test, bytes!=bits
2014-06-04 13:59:38 -04:00
Gabe
8e96d1439d
check if seed is greater than 512 bits
2014-06-04 13:42:06 -04:00
Ryan X. Charles
af9fdff3a9
use SJCL AES to get ECIES working in the browser
2014-06-03 19:03:50 -07:00
Ryan X. Charles
e963ff3c45
add ECIES support in node - not browser
2014-06-02 20:15:58 -07:00
Manuel Aráoz
4d8af75ae9
Merge pull request #361 from dthorpe/VanityAddress
...
Change Address.forKey() to Address.fromKey()
2014-06-01 05:24:42 -03:00
dthorpe
04d6366c11
Change Address.forKey() to Address.fromKey()
2014-05-31 22:18:23 -07:00
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.
2014-05-28 11:34:18 -04:00
Ryan X. Charles
bc84d1e82b
Merge pull request #351 from matiu/bug/minor-bug-in-address-FromScript
...
fix .fromScriptPubKey parsing in some strange Txs
2014-05-26 08:43:43 -07:00
Matias Alejo Garcia
c9694c5768
rm console.log
2014-05-26 12:40:07 -03:00
Manuel Aráoz
6c7f45dcd2
Merge pull request #355 from matiu/bug/peermanager-log
...
change log in checkStatus to .debug
2014-05-26 12:17:01 -03:00
Matias Alejo Garcia
e60e389e43
add more strict checking, plus tests
2014-05-25 23:46:20 -03:00
Matias Alejo Garcia
349143ba02
change log in checkStatus to .debug
2014-05-25 23:06:52 -03:00
Matias Alejo Garcia
56e7739a46
reverse changes in address
2014-05-25 23:01:59 -03:00
Matias Alejo Garcia
be02d41ac2
fix isMultiSig
2014-05-25 23:00:49 -03:00
Matias Alejo Garcia
ddd1476a39
fix buffer
2014-05-25 22:25:12 -03:00
Matias Alejo Garcia
691fec5342
fix .fromScriptPubKey parsing in some strange Txs
2014-05-25 22:25:12 -03:00
Ryan X. Charles
5594f82398
up version to 0.1.21
...
...to make sure compiled bundle is absolutely the latest.
2014-05-23 18:12:09 -07:00
Ryan X. Charles
9fb34f5033
print out string, not buffer
2014-05-23 16:51:32 -07:00
Ryan X. Charles
a679235e46
up bower version #
2014-05-23 16:31:09 -07:00
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.
2014-05-23 16:25:39 -07:00