Commit Graph

59 Commits

Author SHA1 Message Date
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
Paul Miller
f14b8d2be5
More AffinePoint fixes 2023-01-25 00:07:25 +01:00
Paul Miller
2ed27da8eb
weierstrass: remove affine Point 2023-01-24 06:42:44 +01:00
Paul Miller
17e5be5f1b
edwards: affine Point removal tests 2023-01-24 05:37:53 +01:00
Paul Miller
bfbcf733e6
Update tests 2023-01-24 04:02:45 +01:00
Paul Miller
ceb3f67faa
stark: switch to new weierstrass methods 2023-01-23 23:07:21 +01:00
Paul Miller
11e78aadbf
Edwards: prohibit number scalars, only allow bigints 2023-01-23 20:28:01 +01:00
Paul Miller
055147f1be
Add poseidon252 snark-friendly hash 2023-01-23 19:41:19 +01:00
Paul Miller
40530eae0c
hash-to-curve: decrease coupling, improve tree shaking support 2023-01-21 19:02:46 +01:00
Paul Miller
74475dca68
Fix lint 2023-01-13 16:02:07 +01:00