Ryan X. Charles
57a55d0863
expose signature internal functions
...
"sign" and "genk" ... and add some signature tests
2014-07-17 15:24:19 -07:00
Ryan X. Charles
5f6d02f5de
add proper DER signature support to Key
...
both creating DER signature from the r and s values, and parsing a DER
signature into the r, s, and other properties.
2014-07-17 13:09:35 -07:00
Ryan X. Charles
c8f11b9c0a
require Point ... woops
2014-07-10 16:22:42 -07:00
Ryan X. Charles
204d8563c8
remove cryptojs dependency from Key
2014-07-10 16:22:42 -07:00
Ryan X. Charles
ac4d3186bf
update sign function to use elliptic
2014-07-10 16:22:42 -07:00
Ryan X. Charles
8fb6ccaf01
use elliptic for Point.multiply and key regeneration
2014-07-10 16:22:42 -07:00
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.
2014-06-23 10:57:02 -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
olalonde
78ae388553
Replace process.versions tests by browserify's package.json browser field. Fixes #329
2014-05-07 14:14:10 +08:00
Ryan X. Charles
b1f34d4015
iterate array correctly so that random number is actually used in signing
2014-05-01 10:09:33 -04:00
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
c7b33eca9a
update key signing to use new SecureRandom
...
...and throw an error if you try to use the old, non-secure random number
generator.
2014-04-25 15:00:51 -03:00
Ryan X. Charles
10d164b292
add require('bignum') in key
2014-04-24 15:33:38 -03:00
Ryan X. Charles
9575929162
Merge branch 'feature/secure-random'
...
Conflicts:
lib/browser/Key.js
2014-04-24 09:19:58 -03:00
Matias Alejo Garcia
64b5623d54
removes buffertools dependencies in browsers Key.js
2014-04-23 21:32:25 -03: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
dbcf270826
use SecureRandom in Key in the browser
...
...to make sure random numbers are generated securely
2014-04-22 22:43:22 -03:00
Ryan X. Charles
f82fa5007a
move *.browser and *.node to browser/* and node/*
...
...this should leave the lib folder a little bit less cluttered.
2014-04-22 19:36:18 -03:00