Daniel Cousens
aeb0312d63
use safe-buffers throughout impl
8 years ago
Daniel Cousens
7cdabef954
ecdsa: remove unused functions
10 years ago
Daniel Cousens
ccfaaf0b6f
ecdsa: remove curve parameter
10 years ago
Daniel Cousens
6002d9abd4
ecdsa: fix up tuple indentation
10 years ago
Daniel Cousens
254b670427
add types
10 years ago
Daniel Cousens
73d8128f0f
ecdsa: always enforce types in ecdsa
10 years ago
Daniel Cousens
4c030be343
ecdsa: remove unused verifyRaw
10 years ago
Daniel Cousens
a221bd142c
ecdsa: split steps up further as per sec1-v2.pdf
10 years ago
Daniel Cousens
4f8c7f4348
ecdsa: 1.6.1 moved to relevant section
10 years ago
Daniel Cousens
e073ee3d46
ecdsa: avoid 2-line if statements
10 years ago
Daniel Cousens
b5c42303ff
crypto: use packages directly
10 years ago
Daniel Cousens
8d3686d046
remove deprecated functionality
10 years ago
Daniel Cousens
8aa4f9ecc9
ecdsa/ecpubkey: rectify #364 artifacts
10 years ago
Daniel Cousens
399803affa
use standardjs formatting
10 years ago
Daniel Cousens
59143a9c85
ecdsa: clarify why typeForce call is disabled until 2.0.0
10 years ago
Daniel Cousens
6938c8f8cc
ecdsa: add default checkSig, to be removed in 2.0.0
10 years ago
Daniel Cousens
e9778ae358
ecdsa: fixes edge case presented in #336
10 years ago
Daniel Cousens
4c61380fa5
ecdsa: add comment for Step A
10 years ago
Daniel Cousens
e42c497a3c
package: use typeforce
10 years ago
Daniel Cousens
7ef134436e
ecdsa/HDNode: use node crypto for Hmacs
10 years ago
Daniel Cousens
10630873eb
tests: add tests for ecdsa.verify
10 years ago
Daniel Cousens
35542e115d
types: enforce consistent type checking
10 years ago
Daniel Cousens
8297e1b0fc
ecdsa: add further (missing) annotations from 1.4.x
11 years ago
Daniel Cousens
804c542c40
ecdsa: add SEC annotations for verify
11 years ago
Daniel Cousens
be3ce88a3a
ecdsa: enforce positive integers
11 years ago
Daniel Cousens
04bcbadc77
transaction/ecdsa: remove unused imports
11 years ago
Daniel Cousens
ab55417d6d
ecdsa: fix interval comment
Actual range as per the RFC is [1, q - 1], the code adheres to this.
11 years ago
Daniel Cousens
08876fc065
ecdsa: ecurve 0.10.0
11 years ago
Daniel Cousens
776656df8b
ecdsa: adhere strictly to RFC6979
The previous impl. was in breach of the following section:
> Please note that when k is generated from T, the result of bits2int is
> compared to q, not reduced modulo q. If the value is not between 1 and
> q-1, the process loops.
> Performing a simple modular reduction would induce biases that would be
> detrimental to signature security.
11 years ago
Daniel Cousens
f42993297c
ecurve: upgrade to 0.9.0
11 years ago
Daniel Cousens
eb3d9a25f7
ecdsa: moved all signature encoding to ECSignature
11 years ago
Daniel Cousens
1a41ea8801
ecdsa: add more extensive tests for recoverPubKey
11 years ago
Daniel Cousens
402fa0d85d
ecdsa: amend recoverPubKey SEC comments
11 years ago
Daniel Cousens
4f8040f8d4
ecdsa: add invalid test fixtures for recoverPubKey
11 years ago
Daniel Cousens
4ce9015f3b
use ecurve instead of custom ec
11 years ago
Daniel Cousens
eb3a6bcb31
all: rename D to d as per SEC convention
11 years ago
Daniel Cousens
b10e96cbff
ecdsa: serializeSig should return a Buffer
11 years ago
Daniel Cousens
6cfa729dae
ecdsa: fix missing exceptions
11 years ago
Daniel Cousens
58fd12e66d
ecdsa: always use signature object
11 years ago
Daniel Cousens
bd1a08bfa1
ecdsa: use signum() over compareTo
11 years ago
Daniel Cousens
cd326921bc
bigi: upgrade to 1.1.0
11 years ago
Daniel Cousens
087ca551f5
ecdsa: fix indentation
11 years ago
Daniel Cousens
d05d661aea
ecdsa: use standard declarative notation for functions
11 years ago
Daniel Cousens
bcfd62fdb5
ecdsa: remove implicit ecparams
11 years ago
Daniel Cousens
2dec1375a1
ecdsa: use (r, s) values directly
11 years ago
Daniel Cousens
8d7408202f
ecdsa: consistent parameter ordering
11 years ago
Daniel Cousens
abe65b8d4a
ecdsa: use shamirs trick
11 years ago
Daniel Cousens
5ec9504ed6
ecdsa: opt for shiftRight, pow and square
In the given situations, these offer better readability, or in the case
of shiftRight, a substantial performance increase.
11 years ago
Daniel Cousens
7d89ff427c
ecdsa: comment cleanup
11 years ago
Daniel Cousens
0865f09d20
ec/dsa: extract P_OVER_FOUR as a curve specific constant
This actually resolves a possible bug if multiple ecparams were used
(aka different values for P_OVER_FOUR, but only the cached was used).
11 years ago