Commit Graph

15 Commits

Author SHA1 Message Date
Ryan X. Charles 4f5b41eff0 fix browser tests for Point and Key
The addUncompressed function is for node-only, and is a temporary workaround
until we expose a better crypto interface in both node and the browser. I wrote
tests for this function that were node-only, but were broken in the browser.  I
also wrote tests for the Point class that should have worked in both node and
the browser, and did, but I was using the wrong module such that it worked only
in node.  This update makes the tests work in the browser by using the correct
module.
2014-03-31 16:32:16 -04:00
Ryan X. Charles 7904efe147 remove redundant and slow test 2014-03-23 15:30:31 -07:00
Ryan X. Charles a686e63b0b fix issue by outputing proper pubkey format
The way I was outputting the pubkeys would be incorrect if the first byte of
one of the coordinates was 0, since it would print the first non-zero byte
first. The solution was to use the standard openssl function that outputs a
public key to oct.
2014-03-23 15:11:32 -07:00
Ryan X. Charles d11361be9e expose group operation
BIP32 needs to be able to add two points on the secp256k1 curve. This
functionality was not already being exposed from OpenSSL in bitcore. I have
added an "addUncompressed" function to the Key class which takes in two points
in uncompressed form, adds them, and returns the result. This is necessary for
BIP32.
2014-03-23 10:35:28 -07:00
Ryan X. Charles 05f6e28642 update interface, bitcore.KeyModule.Key -> bitcore.Key
It's annoying and easy to forget to type in bitcore.KeyModule.Key. I have
updated this so that now you can just do bitcore.Key. Tests pass in node and
the browser. This is a backwards-incompatible change so all software that
depends on the old style key generation will need to be updated.
2014-03-13 13:31:02 -04:00
Matias Alejo Garcia 2a6f7155b3 fix sigatures and verifications on browser 2014-03-13 00:27:50 -03:00
Matias Alejo Garcia caa16713f1 add broken test for verifing a signature (fails in browser) 2014-03-12 23:21:16 -03:00
Matias Alejo Garcia 089fbab719 support soop with browser all test passing 2014-03-08 18:42:08 -03:00
Matias Alejo Garcia cfc3ca35d4 remove constructor params in browser version of KeyModule 2014-03-04 17:45:27 -03:00
Matias Alejo Garcia 8f61401099 add support for Sign and Verify in Key for Browser. Tests added 2014-03-04 03:23:42 -03:00
Manuel Araoz b4642e8924 all tests working in browser :D 2014-02-24 09:39:42 -03:00
Manuel Araoz 3e5e0057b1 Key tests working in the browser~!!! 2014-02-24 09:39:42 -03:00
Manuel Araoz 915c048c3b browser ECDSA compressed key generated 2014-02-24 09:39:42 -03:00
Manuel Araoz 0f393cb989 ECDSA key browser work 2014-02-24 09:39:42 -03:00
Manuel Araoz 47fb987600 Added more classes to browser 2014-02-19 16:07:50 -03:00