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).
11 years ago
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.
11 years ago
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.
11 years ago
Manuel Araoz
6e306c4cb1
bundler changes for customizer
11 years ago
Manuel Araoz
ebafcb94a3
changing browser builder
11 years ago
Ryan X. Charles
e4e45c5245
add Electrum to browser build and tests
11 years ago
Ryan X. Charles
55061776ac
add Message to browser build and tests
11 years ago
Eric Martindale
9771d8138d
Fix browser bundling with new architecture.
11 years ago
Manuel Araoz
3cbcbd54cb
fix Buffers.skip in the browser
11 years ago
unknown
d8c8288ce4
Change to @olalonde suggestion for compatibility on both *nix and windows
11 years ago
unknown
880efdc22f
Fix exec syntax in browser/build.js, fixes error on windows
11 years ago
Matias Alejo Garcia
26b7f89f39
update examples and readme
11 years ago
Ryan X. Charles
f6aa01c445
add basic tests for all functions in Point
11 years ago
Manuel Araoz
18630bb2b1
fix browser tests
11 years ago
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.
11 years ago
Matias Alejo Garcia
684be77268
small fixes in block, adapt to browser bignum. remove legacy code
11 years ago
Manuel Araoz
e8013cfed0
fix dir
11 years ago
Manuel Araoz
eb90bc152b
base dir
11 years ago
Manuel Araoz
5e0ae915f2
muting testdata for stdout
11 years ago
Manuel Araoz
f9d4c66c0f
remove extra prints
11 years ago
Manuel Araoz
b696dae603
make stdout output possible
11 years ago
Manuel Araoz
c9607e5821
fix paths
11 years ago
Manuel Araoz
a675f4566c
fix paths
11 years ago
Manuel Araoz
b1c038b4d0
add dir option
11 years ago
Manuel Araoz
c72cab1803
add exports
11 years ago
Manuel Araoz
e0557d0dea
check submodule validity
11 years ago
Manuel Araoz
dabfbc0cf3
modularize browser build.js
11 years ago
Manuel Araoz
0e9ec8b57c
fix dir
11 years ago
Manuel Araoz
b3e243e397
base dir
11 years ago
Manuel Araoz
cd88011875
muting testdata for stdout
11 years ago
Manuel Araoz
1cda79fd93
remove extra prints
11 years ago
Manuel Araoz
435604cf49
make stdout output possible
11 years ago
Manuel Araoz
5db6dfd8ed
fix paths
11 years ago
Manuel Araoz
f1834162dd
fix paths
11 years ago
Manuel Araoz
25868dc8f0
add dir option
11 years ago
Manuel Araoz
7702f6137e
add exports
11 years ago
Manuel Araoz
ee04af6362
check submodule validity
11 years ago
Manuel Araoz
aa1511d95c
modularize browser build.js
11 years ago
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.
11 years ago
Manuel Araoz
69dbb24bce
make util dependencies optional
11 years ago
Manuel Araoz
348cf50636
minify bundle
11 years ago
Manuel Araoz
c339fb1f2f
change README names
11 years ago
Manuel Araoz
dbc968e226
fixing postinstall
11 years ago
Manuel Araoz
fa7e205de8
still trying to fix postinstall
11 years ago
Manuel Araoz
409bb093d5
configurable submodules for browser bundle
11 years ago
Manuel Araoz
714cf98940
automatic vendor-bundle.js creation on browserify
11 years ago
Ryan X. Charles
82d9f44b6b
remove unnecessary "buffer" from browserify.js
11 years ago
Ryan X. Charles
5b67d91f35
fix the loading for Key.js
Now, like all other modules loaded in the bitcore object, Key is only required
when it is actually used. All tests pass in node and the browser.
11 years ago
Manuel Araoz
4167827937
merge master changes
11 years ago
Manuel Araoz
d7529a8281
trying to fix node tests now
11 years ago