Paul Miller
309d29a084
Merge pull request #56 from CoinSpace/extraentropy
...
fix: check extraEntropy according to the spec
2023-06-28 14:44:56 +02:00
Evgeny Vlasenko
d3aa051770
feat: tests for extraEntropy
2023-06-28 16:12:44 +04:00
Stefan Knoblich
e3a4bbffe9
Add decaf448
...
Based on draft-irtf-cfrg-ristretto255-decaf448-07,
draft-irtf-cfrg-hash-to-curve-16 and the ristretto255 implementation.
Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
2023-06-26 22:48:48 +02:00
Paul Miller
42de620010
edwards: make zip215 false Strongly Binding Signature (SBS) secure. gh-40
2023-05-05 03:37:13 +02:00
Paul Miller
6621053c7d
edwards: ensure Point.fromHex fails when x=0 and first x bit is 1. gh-40
2023-05-05 01:39:53 +02:00
Paul Miller
213796db4b
ed25519: rename to edwardsToMontgomeryPub
2023-04-23 20:28:28 +02:00
Paul Miller
b2a04c2393
Merge pull request #32 from mirceanis/31-fix-edwardsToMontgomery
...
ed25519: fix edwardsToMontgomery formula; implement edwardsToMontgomeryPriv
2023-04-23 20:16:22 +02:00
Paul Miller
36af62357f
test: adjust ed and secp tests a bit
2023-04-22 02:24:41 +02:00
Mircea Nistor
88291eba33
ed25519: fix edwardsToMontgomery formula; implement edwardsToMontgomeryPriv; add tests
2023-04-20 13:37:21 +02:00
Paul Miller
848a1b0226
nist tests: add endomorphism test
2023-04-14 19:53:20 +02:00
Paul Miller
6316643f51
Rename bn to bn254
2023-04-12 04:33:32 +02:00
Paul Miller
123431de66
nist curves: rename from P256 to p256 for consistency
2023-04-10 21:04:16 +02:00
Paul Miller
81e6046698
test: move vector
2023-04-10 05:23:35 +02:00
Paul Miller
00665b21ab
htf: Prohibit expand: undefined
. Closes gh-18
2023-04-10 05:02:36 +02:00
Paul Miller
5d54bba846
lint
2023-04-08 21:23:42 +02:00
Paul Miller
6ea40d9dab
Update tests. Update wycheproof from v0.8 to v0.9
2023-04-08 19:00:18 +02:00
Paul Miller
fe380da8c9
edwards: change strict option to zip215
2023-04-02 18:35:34 +02:00
Paul Miller
113d906233
edwards: change API. Add options.strict, context. Add edwardsToMontgomery
2023-04-02 17:35:03 +02:00
Paul Miller
ed3ba3de6e
Prettier
2023-04-02 16:50:54 +02:00
Paul Miller
d424c661fb
Fix tests
2023-04-02 16:50:27 +02:00
Paul Miller
c15c964f77
Refactor BLS, change API
2023-04-02 16:38:03 +02:00
Paul Miller
37ebe6c40f
tests of ed25519, ed448: improve
2023-04-02 15:38:36 +02:00
Paul Miller
8fabc7ff06
All files: rename Fp to Field
2023-03-21 06:51:18 +01:00
Paul Miller
d77ac16f51
Bring back common.js for now. Need more thorough work with consumers
2023-03-14 00:32:09 +01:00
Paul Miller
fe68da61f6
Move stark curve to micro-starknet
2023-03-10 20:18:05 +01:00
Paul Miller
7c461af2b2
test: remove common.js support
2023-03-03 05:09:50 +04:00
Paul Miller
4b2d31ce7f
stark: more methods
2023-02-28 23:18:06 +04:00
Paul Miller
ec2c3e1248
Add test for ristretto equality testing
2023-02-27 19:33:41 +04:00
Paul Miller
6bc4b35cf4
hash-to-curve: speed-up os2ip, change code a bit
2023-02-26 18:55:30 +01:00
Paul Miller
d739297b2c
Move p192, p224 from main pkg to tests for now. Reason: not popular
2023-02-25 10:00:24 +01:00
Paul Miller
285aa6375d
stark: refactor
2023-02-20 16:50:29 +01:00
Paul Miller
26ebb5dcce
x25519, x448: change param from a24 to a. Change Gu to bigint
2023-02-15 23:07:52 +01:00
Paul Miller
cde1d5c488
Fix tests
2023-02-14 23:51:11 +01:00
Paul Miller
4ec46dd65d
Remove scure-base from top-level dep
2023-02-14 18:00:11 +01:00
Paul Miller
80966cbd03
hash-to-curve: more type checks. Rename method to createHasher
2023-02-14 17:39:56 +01:00
Paul Miller
8e449cc78c
ed25519 tests: unify with noble-ed25519
2023-02-09 21:26:24 +01:00
Paul Miller
1b6071cabd
weierstrass: rename normPrivKey util. tests: prepare for unification w old noble pkg
2023-02-09 20:26:20 +01:00
Paul Miller
47533b6336
Add more tests for weierstrass, etc
2023-02-09 13:29:19 +01:00
Paul Miller
837aca98c9
Fix bugs
2023-01-30 06:10:56 +01:00
Paul Miller
ceffbc69da
More Schnorr utils
2023-01-29 04:46:38 +01:00
Paul Miller
c75129e629
Use declarative curve field validation
2023-01-28 03:19:46 +01:00
Paul Miller
f39fb80c52
weierstrass: rename normalizePrivateKey to allowedPrivateKeyLengths
2023-01-27 23:45:55 +01:00
Paul Miller
0fb78b7097
Rename group to curve. More refactoring
2023-01-26 04:14:21 +01:00
Paul Miller
3d77422731
Restructure tests
2023-01-26 03:06:28 +01:00
Paul Miller
c46914f1bc
weierstrass: remove most private utils
2023-01-25 08:21:48 +01:00
Paul Miller
5fc38fc0e7
weierstrass: prehash option in sign/verify. Remove _normalizePublicKey
2023-01-25 05:45:49 +01:00
Paul Miller
849dc38f3c
Change TypeError to Error
2023-01-25 05:24:22 +01:00
Paul Miller
0422e6ef38
p.x, p.y are now getters executing toAffine()
2023-01-25 04:51:08 +01:00
Paul Miller
21d2438a33
BLS: fix tests. Poseidon: more tests
2023-01-25 00:30:53 +01:00
Paul Miller
cea4696599
BLS tests: remove async
2023-01-25 00:13:39 +01:00