Ryan X. Charles
ca67786a77
ran js-beautify on all bitcore source
js-beautify -s 2 -r *.js
...did not run on bundles, only on source.
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
olalonde
78ae388553
Replace process.versions tests by browserify's package.json browser field. Fixes #329
11 years ago
Ryan X. Charles
b1f34d4015
iterate array correctly so that random number is actually used in signing
11 years ago
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
c7b33eca9a
update key signing to use new SecureRandom
...and throw an error if you try to use the old, non-secure random number
generator.
11 years ago
Ryan X. Charles
10d164b292
add require('bignum') in key
11 years ago
Matias Alejo Garcia
64b5623d54
removes buffertools dependencies in browsers Key.js
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
dbcf270826
use SecureRandom in Key in the browser
...to make sure random numbers are generated securely
11 years ago
Ryan X. Charles
f82fa5007a
move *.browser and *.node to browser/* and node/*
...this should leave the lib folder a little bit less cluttered.
11 years ago
Ryan X. Charles
05d86b6453
split up Key into Key.browser and Key.node
11 years ago