Commit Graph

35 Commits

Author SHA1 Message Date
Ryan X. Charles
7f348ca0bd Move BigNumber to internal
...no longer relies on Manuel's repo hostig a version of "bignum" that actually
contained bignumber.js. This moves bignumber.js internally and removes bignum
from the browser build process. Also adds a bitcore.Bignum that links to the
right thing. In node, browser.Bignum is require('bignum'). And in the browser,
bitcore.Bignum is is now Bignumber.js (same as before ... except bignumber.js
is now inside bitcore).
2014-04-28 18:00:59 -04:00
Ryan X. Charles
350f6ae998 Key should make sure new privkey is less than N
...this involves adding a Curve class, and significant refactoring to make this
possible in a clean way.
2014-04-23 21:15:55 -03:00
Ryan X. Charles
ba692aaa20 add new SecureRandom class that does the right thing
Generating random numbers properly depends on the platform. The new
getRandomBuffer method does the right thing on the right platform. It will
sometimes fail due to insufficient entropy. The getPseudoRandomBuffer class is
also provided that will never fail, but it is not cryptographically secure and
should not be used for keys.
2014-04-22 22:18:59 -03:00
Manuel Araoz
6e306c4cb1 bundler changes for customizer 2014-04-22 12:26:57 -03:00
Manuel Araoz
ebafcb94a3 changing browser builder 2014-04-22 12:26:57 -03:00
Ryan X. Charles
e4e45c5245 add Electrum to browser build and tests 2014-04-20 17:49:43 -03:00
Ryan X. Charles
55061776ac add Message to browser build and tests 2014-04-19 11:41:00 -03:00
Eric Martindale
9771d8138d Fix browser bundling with new architecture. 2014-04-17 18:05:43 -04:00
Manuel Araoz
3cbcbd54cb fix Buffers.skip in the browser 2014-04-10 18:52:13 -03:00
Ryan X. Charles
45fb78296a Merge pull request #225 from unusualbob/bug/browserbuildwindows
Fix exec syntax in browser/build.js, fixes error on windows
2014-04-08 16:20:52 -03:00
unknown
d8c8288ce4 Change to @olalonde suggestion for compatibility on both *nix and windows 2014-04-08 10:48:06 -04:00
unknown
880efdc22f Fix exec syntax in browser/build.js, fixes error on windows 2014-04-08 03:54:35 -04:00
Ryan X. Charles
93050e3e92 Merge branch 'feature/TransactionBuilder' 2014-03-30 21:02:22 -04:00
Matias Alejo Garcia
26b7f89f39 update examples and readme 2014-03-28 23:39:12 -03:00
Ryan X. Charles
a0daef56d9 Merge pull request #165 from ryanxcharles/feature/bip32
BIP 32 (hierarchical deterministic wallets)
2014-03-28 18:54:58 -04:00
Ryan X. Charles
f6aa01c445 add basic tests for all functions in Point 2014-03-28 18:07:23 -04:00
Manuel Araoz
18630bb2b1 fix browser tests 2014-03-26 12:00:03 -03:00
Ryan X. Charles
ba59d97a73 make things work in the browser by fixing sha512
...had to use jsSHA package to do SHA512 in the browser. Unfortunately it is
quite slow compared to node.
2014-03-22 16:16:58 -07:00
Matias Alejo Garcia
684be77268 small fixes in block, adapt to browser bignum. remove legacy code 2014-03-21 16:39:38 -03:00
Manuel Araoz
e8013cfed0 fix dir 2014-03-14 10:38:50 -03:00
Manuel Araoz
eb90bc152b base dir 2014-03-14 10:38:49 -03:00
Manuel Araoz
5e0ae915f2 muting testdata for stdout 2014-03-14 10:38:49 -03:00
Manuel Araoz
f9d4c66c0f remove extra prints 2014-03-14 10:38:49 -03:00
Manuel Araoz
b696dae603 make stdout output possible 2014-03-14 10:38:49 -03:00
Manuel Araoz
c9607e5821 fix paths 2014-03-14 10:38:49 -03:00
Manuel Araoz
a675f4566c fix paths 2014-03-14 10:38:49 -03:00
Manuel Araoz
b1c038b4d0 add dir option 2014-03-14 10:38:49 -03:00
Manuel Araoz
c72cab1803 add exports 2014-03-14 10:38:49 -03:00
Manuel Araoz
e0557d0dea check submodule validity 2014-03-14 10:38:49 -03:00
Manuel Araoz
dabfbc0cf3 modularize browser build.js 2014-03-14 10:38:49 -03:00
Ryan X. Charles
34f92b605d soop may not be in the bitcore directory
If bitcore is being built inside of another project that uses soop, soop may
not be in the bitcore directory. We need to find the location of soop and then
find the custom_prelude script relative to that.
2014-03-13 12:41:11 -04:00
Manuel Araoz
69dbb24bce make util dependencies optional 2014-03-12 17:03:37 -03:00
Manuel Araoz
348cf50636 minify bundle 2014-03-12 16:40:25 -03:00
Manuel Araoz
c339fb1f2f change README names 2014-03-12 09:37:24 -03:00
Manuel Araoz
dbc968e226 fixing postinstall 2014-03-12 09:24:18 -03:00