Commit graph

64 commits

Author SHA1 Message Date
Roman Shtylman
0faac29134 start to split into node commonjs style modules
- no longer is the global Bitcoin used for modules
- cleaner and more maintainable code
- add more tests
2013-02-17 00:40:14 -05:00
Stefan Thomas
e90780d3d3 Fix typo in ECDSA.verify. 2012-08-26 11:24:42 +02:00
Stefan Thomas
07f9d55ccb Fixed DER-encoding - expects signed integers.
Thanks to Ben Reeves for the report and Tomas Pomin for the solution.

See http://crypto.stackexchange.com/questions/1795/converting-a-der-ecdsa-signature-to-asn-1
2012-08-17 09:14:07 +02:00
Stefan Thomas
0aaa2c6347 Fix calcPubkeyRecoveryParam - must verify pubkey correctness. 2012-08-17 01:50:29 +02:00
Stefan Thomas
de6cfd37db Removed modSqrt. All credit to Joric!
Derp. Well that sure simplifies things, doesn't it... :)
2012-08-17 01:38:29 +02:00
Stefan Thomas
9b2f94a028 Implement Bitcoin's method for arbitrary message signatures. 2012-08-16 00:25:06 +02:00
justmoon
faa10f0f6a Compressed pubkey output is confirmed working, remove TODO, add comments. 2012-04-07 02:02:21 +02:00
justmoon
d03e489913 Use correct function to determine yP for pubkey compression. Fixes . 2012-04-07 01:58:42 +02:00
Stefan Thomas
09e8c6e184 Added comments. 2012-01-11 10:41:52 +01:00
Stefan Thomas
1a7fc9d063 Fixed indents. 2012-01-11 02:40:45 +01:00
Stefan Thomas
d985697d8f Added credit on encoding fix. See . 2011-09-27 13:47:47 +01:00
Stefan Thomas
d7ce1e5db8 Corrected encoded form with correct padding. See . 2011-09-27 13:44:47 +01:00
Stefan Thomas
0f424562f2 Added more ECDSA function and some fixes.
decodeFrom is no longer destructive with it's inputs.
Added isOnCurve().
Added validate().
Fixed formatting.
Factored out new functions serializeSig and parseSig.
2011-08-26 20:47:47 +01:00
Stefan Thomas
8b32d43335 Moved sources into src/ subdirectory. 2011-08-11 18:35:23 +01:00
Renamed from ecdsa.js (Browse further)