Linus Unnebäck
3da6fe899f
cleanup after removal of soop
Removed some unnecessary parenthesise that hung around after the merge
of #417
11 years ago
Ryan X. Charles
8a199e26f3
allow Point to multiply things other than buffers
...i.e., bignums, numbers, and strings. Also, ensure that if you try to
multiply a buffer, it should be exactly 32 bytes. Eventually this "multiply"
function will be replaced with a more conventional "mul" function, but not yet.
11 years ago
Ryan X. Charles
af1d754bd8
make bignum interface backwards compatible
- fix cmp, mul, div, add, mod, sub functions to take numbers and strings
- fix Point class to use common folder correctly
11 years ago
Ryan X. Charles
8fb6ccaf01
use elliptic for Point.multiply and key regeneration
11 years ago
Ryan X. Charles
15d4328b35
use elliptic in Point in the browser instead of cryptojs
11 years ago
Manuel Araoz
87b818badf
remove soop exports
11 years ago
Manuel Araoz
6e346d067c
remove soop imports
11 years ago
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
olalonde
59ee476b96
Armory: use native multiplication in node and javascript implementation in browser
11 years ago
olalonde
e2655f553d
Added EC Point multiplication to browser/Point.js
11 years ago
olalonde
78ae388553
Replace process.versions tests by browserify's package.json browser field. Fixes #329
11 years ago
Ryan X. Charles
527c49a11d
remove unused chai dependency
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
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
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
abc799f453
split up Point into separate node and browser versions
11 years ago