Daniel Cousens
9510af10e3
EC*Key: add .curve static property for public API
10 years ago
Daniel Cousens
a8c6f5284d
tests: avoid unnecessary sha256 for hash
11 years ago
Daniel Cousens
8e0c835919
package: use crypto-browserify 3.0.0
11 years ago
Daniel Cousens
89f0324cd7
ECKey: adds tests for makeRandom
11 years ago
Daniel Cousens
27f58b539e
ECKey: remove extraneous toString
11 years ago
Daniel Cousens
eb3a6bcb31
all: rename D to d as per SEC convention
11 years ago
Daniel Cousens
28dc390377
EC/Key: use network object consistently
11 years ago
Daniel Cousens
77ed66b24d
ECKey: ensure throw is from ECKey
11 years ago
Daniel Cousens
7494a146a6
ECKey: fix exception tests
These weren't broken as such, but they weren't distinctly checking that
the right exception was thrown either.
11 years ago
Daniel Cousens
b2351f9026
tests: use JSON fixtures exclusively
11 years ago
Daniel Cousens
10fe4474d1
ECKey: remove *Buffer/*Hex functions
An ECKey is a composition of a private key (D), a public key (Q) and its
compression flag.
These functions gave the impression of serialization of this
composition, when really they only serialized `D`.
They have therefore been removed in favour of always using a sane
serialization format (WIF) that matches the needed behaviour.
If a user needs the previous functionality, simply use `privKey.D.*`
instead of `privKey.*`, as BigInteger supports `*Buffer/*Hex` functions
as expected.
11 years ago
Daniel Cousens
6c0eebe94b
tests: use filepaths directly
After a long IRC discussion, it was decided that the use of direct
filepaths instead of the module is a more pure form of testing ,
although it may provide less overall coverage than the mixed integration
style imports used previously.
This will need to be remedied by further integration testing in
/test/integration.
11 years ago
Daniel Cousens
e27c97a791
ECPubKey/ECKey: separate to two files
11 years ago
Daniel Cousens
7a740c2e7b
tests: forces consistent import syntax
11 years ago
Daniel Cousens
c3e9d568c5
Adds RFC6979 test vectors and fixes ecdsa.sign/detGenK
11 years ago
Daniel Cousens
bc37e65014
Enforces Array input for deterministicGenerateK
11 years ago
Daniel Cousens
7f8dcd58cb
Removes unused imports
11 years ago
Daniel Cousens
b4f70dcdde
Migrates ECKey to stricter API
11 years ago
GreenAddress.it
9d876198f5
Moves 'low S value' test from eckey.js to ecdsa.js
11 years ago
GreenAddress.it
d7c2e4d5a5
Uses low 's' values for signatures
11 years ago
Daniel Cousens
f047afef2d
Updates network.js constant names
11 years ago
Wei Lu
93fe1b4c78
cosmetic standardization
[closes #56 ]
11 years ago
Daniel Cousens
a1944fdc77
Adds some ECKey tests
11 years ago
Daniel Cousens
a96dfea1f4
Adds compression flag to toHex/toBin and tests
11 years ago
Wei Lu
9358a40500
tabs -> spaces
11 years ago
Daniel Cousens
fcf67a87cc
Restructures test/eckey.js
11 years ago
Daniel Cousens
74ee2f90d0
Adds failing test for #78
11 years ago
Wei Lu
eaf84c4283
move address versions into network
Also change address type name:
address_types -> addressVersion
p2sh_types -> p2shVersion
prod -> mainnet
11 years ago
Michael Gooden
b8215dea60
Add testnet support to Address and ECKey, more tests.
Signed-off-by: Michael Gooden <me@michaelgooden.net>
11 years ago
Andreas Brekken
f591cc0111
Reformat all tests for more modern mocha syntax (describe, it)
11 years ago
Andreas Brekken
d6290ef5df
Rename test files to match what they test
11 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