Daniel Cousens
c3e9d568c5
Adds RFC6979 test vectors and fixes ecdsa.sign/detGenK
11 years ago
ethers
1c8f135d9c
assertion message
11 years ago
Daniel Cousens
bc37e65014
Enforces Array input for deterministicGenerateK
11 years ago
Daniel Cousens
ae60e6eb95
Replacse JSBN with bigi
11 years ago
Daniel Cousens
96ebb65099
Removes ecdsa.getBigRandom
11 years ago
GreenAddress.it
d7c2e4d5a5
Uses low 's' values for signatures
11 years ago
Daniel Cousens
56336b9c2b
Removes use of convert module
11 years ago
Daniel Cousens
6de94856e3
Makes ECDSA capitalization consistent
11 years ago
Wei Lu
93fe1b4c78
cosmetic standardization
[closes #56 ]
11 years ago
Daniel Cousens
10dea421d5
Removes circular dependancy of ECKey
11 years ago
Daniel Cousens
bfc5924522
Compression is irrelevant in comparison
11 years ago
Daniel Cousens
669a58bbf8
Removes unnecessary SHA256 calculations
11 years ago
Daniel Cousens
f580516c06
Removes unused variables
11 years ago
Daniel Cousens
b40374e332
Changes to new version-less ECKey API
11 years ago
Wei Lu
b7861e4336
replace jsbn's rng with module secure-random
This uses window.crypto.getRandomValues on browser
and crypto.randomBytes on node
11 years ago
Wei Lu
3d6b66e811
move convert methods from util to convert
11 years ago
Wei Lu
a281a5ab53
migrate crypto-js to 3.1.2
11 years ago
Wei Lu
bde9b13b15
remove isArray shim
[closes #40 ]
11 years ago
Andreas Brekken
c3fbd63c84
Fix bad Bitcoin.Crypto reference in ecdsa.js
11 years ago
Vitalik Buterin
30e8b572d6
Added deterministic signing and added a public key class. Note that getPub should now be replaced with getPub().export('bytes')
11 years ago
Nadav Ivgi
0a075573ed
Fix signing with compressed keys
calcPubkeyRecoveryParam always assumed a non-compressed key, and was comparing
the address generated from a non-compressed public key against the original
address generated from the compressed public key.
This commit fixes it by passing the entire pubkey object, and configuring the
generated address to use the same compressed setting as the original one.
11 years ago
Roman Shtylman
41f0027883
port message to common.js style and add tests
12 years ago
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
12 years ago
Stefan Thomas
e90780d3d3
Fix typo in ECDSA.verify.
13 years ago
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
13 years ago
Stefan Thomas
0aaa2c6347
Fix calcPubkeyRecoveryParam - must verify pubkey correctness.
13 years ago
Stefan Thomas
de6cfd37db
Removed modSqrt. All credit to Joric!
Derp. Well that sure simplifies things, doesn't it... :)
13 years ago
Stefan Thomas
9b2f94a028
Implement Bitcoin's method for arbitrary message signatures.
13 years ago
justmoon
faa10f0f6a
Compressed pubkey output is confirmed working, remove TODO, add comments.
13 years ago
justmoon
d03e489913
Use correct function to determine yP for pubkey compression. Fixes #6 .
13 years ago
Stefan Thomas
09e8c6e184
Added comments.
13 years ago
Stefan Thomas
1a7fc9d063
Fixed indents.
13 years ago
Stefan Thomas
d985697d8f
Added credit on encoding fix. See #1 .
14 years ago
Stefan Thomas
d7ce1e5db8
Corrected encoded form with correct padding. See #1 .
14 years ago
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.
14 years ago
Stefan Thomas
8b32d43335
Moved sources into src/ subdirectory.
14 years ago
Stefan Thomas
5cd49a1c89
Removed debug statements.
14 years ago
Stefan Thomas
27ec74ba8a
Fixed all cases of unsafe BigInteger <-> byte[] conversion.
The BigInteger class we're using supports negative integers and
encodes them with a sign bit. Since in our application we are dealing
with unsigned integers only, we need to disable this functionality by
creating two wrapper functions toByteArrayUnsigned and
fromByteArrayUnsigned.
14 years ago
Stefan Thomas
c0d740d2d4
Initial import
14 years ago