Commit Graph

140 Commits

Author SHA1 Message Date
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
a49f0d266e
edwards: remove affine Point, Signature. Stricter types 2023-01-24 05:34:56 +01:00
Paul Miller
bfbcf733e6
Update tests 2023-01-24 04:02:45 +01:00
Paul Miller
7fda6de619
weierstrass: make points compressed by def. Rewrite drbg, k generation. 2023-01-24 04:02:38 +01:00
Paul Miller
2b908ad602
edwards: simplify bounds check 2023-01-24 04:01:28 +01:00
Paul Miller
ceb3f67faa
stark: switch to new weierstrass methods 2023-01-23 23:07:21 +01:00
Paul Miller
a2c87f9c2f
weierstrass: simplify bits2int, remove truncateHash 2023-01-23 23:06:43 +01:00
Paul Miller
e1fd346279
utils: small improvements 2023-01-23 23:06:24 +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
6f99f6042e
weierstrass: bits2int, int2octets, truncateHash now comply with standard 2023-01-21 19:03:39 +01:00
Paul Miller
1e47bf2372
Bump prettier to 2.8.3 because it fails to parse bls 2023-01-21 19:02:58 +01:00
Paul Miller
40530eae0c
hash-to-curve: decrease coupling, improve tree shaking support 2023-01-21 19:02:46 +01:00
Paul Miller
b9482bb17d
Release 0.5.2. 0.5.2 2023-01-13 16:23:52 +01:00
Paul Miller
74475dca68
Fix lint 2023-01-13 16:02:07 +01:00
Paul Miller
f4cf21b9c8
tests: Use describe() 2023-01-13 16:00:13 +01:00
Paul Miller
5312d92b2c
edwards: Fix isTorsionFree() 2023-01-13 15:58:04 +01:00
Paul Miller
d1770c0ac7
Rename test 2023-01-13 01:29:54 +01:00
Paul Miller
2d37edf7d1
Remove utils.mod(), utils.invert() 2023-01-13 01:26:00 +01:00
Paul Miller
36998fede8
Fix sqrt 2023-01-13 01:21:51 +01:00
Paul Miller
83960d445d
Refactor: weierstrass assertValidity and others 2023-01-12 21:18:51 +01:00
Paul Miller
23cc2aa5d1
edwards, montgomery, weierstrass: refactor 2023-01-12 20:40:16 +01:00
Paul Miller
e45d7c2d25
utils: new util; ed448: small adjustment 2023-01-12 20:39:43 +01:00
Paul Miller
bfe929aac3
modular: Tonneli-Shanks refactoring 2023-01-12 20:38:42 +01:00
Paul Miller
069452dbe7
BLS, jubjub refactoring 2023-01-12 20:38:10 +01:00
Paul Miller
2e81f31d2e
ECDSA: signUnhashed(), support for key recovery from bits 2/3 2023-01-08 20:02:04 +01:00
Paul Miller
9f7df0f13b
ECDSA adjustments 2023-01-08 18:46:55 +01:00
Paul Miller
5600629bca
Refactor 2023-01-08 18:02:54 +01:00
Paul Miller
2bd5e9ac16
Release 0.5.1. 0.5.1 2022-12-31 10:31:10 +01:00
Paul Miller
6890c26091
Fix readme toc 2022-12-31 10:29:25 +01:00
Paul Miller
a15e3a93a9
Docs 2022-12-31 10:00:29 +01:00
Paul Miller
910c508da9
hash-to-curve: elligator in 25519, 448. Stark: adjust type 2022-12-31 07:51:29 +01:00
Paul Miller
12da04a2bb
Improve modular math 2022-12-31 07:49:42 +01:00
Paul Miller
cc2c84f040
Improve field tests 2022-12-31 07:49:09 +01:00
Paul Miller
5d42549acc
hash-to-curve: add xmd/xof support 2022-12-31 07:48:13 +01:00
Paul Miller
65d7256b9e
Release 0.5.0. 0.5.0 2022-12-28 08:05:22 +01:00
Paul Miller
d77a98a7aa
README, security 2022-12-28 08:04:55 +01:00
Paul Miller
1bfab42620
Update package.json 2022-12-28 07:57:42 +01:00
Paul Miller
f1ab259941
README 2022-12-28 07:52:04 +01:00
Paul Miller
242ee620c5
Merge packages into one 2022-12-28 07:37:45 +01:00
Paul Miller
d837831d22
Implement hash-to-curve for weierstrass curves, add test vectors 2022-12-28 06:31:41 +01:00
Paul Miller
cae888d942
P224: fix sha224 tests 2022-12-28 06:30:13 +01:00
Paul Miller
1ab77b95dd
Comment 2022-12-28 06:20:08 +01:00
Paul Miller
8b5819b12d
bls12: comments 2022-12-27 05:25:23 +01:00
Paul Miller
4b5560ab4b
secp256k1 tests: remove test skips 2022-12-27 05:25:09 +01:00