Paul Miller
e31efd91d8
Merge pull request #74 from randombit/jack/add-short-signatures
...
Add verification of BLS short signatures
2023-08-26 00:50:42 +02:00
Jack Lloyd
c5e0e070d1
Complete BLS short signature support
2023-08-24 16:38:12 -04:00
Paul Miller
0d7756dceb
Release 1.2.0.
1.2.0
2023-08-23 20:00:32 +02:00
Paul Miller
b716b4603f
Update lockfile for 1.2
2023-08-23 19:58:55 +02:00
Paul Miller
d7a139822d
Release 1.2.0.
2023-08-23 19:55:35 +02:00
Paul Miller
fb6c379a26
Update README
2023-08-23 19:48:52 +02:00
Paul Miller
eeac255c88
update noble-hashes to 1.3.2
2023-08-23 19:45:47 +02:00
Paul Miller
925fc3f810
modular: adjust getFieldsBytseLength
2023-08-23 19:43:55 +02:00
Paul Miller
eb8e7ec964
hash-to-curve, weierstrass, bls, ed: upgrade h2c comments to rfc 9380
2023-08-23 19:43:14 +02:00
Paul Miller
e7ac5e85d3
poseidon: refactor params
2023-08-21 18:16:40 +02:00
Paul Miller
d285fcce06
modular: Document FpPow
2023-08-21 17:52:21 +02:00
Paul Miller
ef667bb404
poseidon: refactor validateOpts, fix tests
2023-08-21 17:48:34 +02:00
Paul Miller
62749382e7
poseidon: remove default sboxPower: 5
2023-08-21 17:04:58 +02:00
Paul Miller
f90e871725
weierstrass: prohibit (0, 0, 0) in assertValidity
2023-08-21 16:05:53 +02:00
Paul Miller
f049398718
modular: bring back 1.1.0 hashToPrivateScalar for clean diff
2023-08-18 23:14:08 +02:00
Paul Miller
ca99179bd8
bls, modular: lint
2023-08-18 23:09:53 +02:00
Paul Miller
1545230ee5
modular, weierstrass, bls: use new mapHashToField
2023-08-18 23:08:46 +02:00
Jack Lloyd
b082d41c29
Add verification of BLS short signatures
2023-08-18 15:36:17 -04:00
Paul Miller
2ce3b825f8
readme
2023-08-16 02:36:24 +02:00
Paul Miller
8315fe3580
readme
2023-08-16 02:33:10 +02:00
Paul Miller
9b7889e16f
README: improve docs for ecdh
2023-08-16 02:14:41 +02:00
Paul Miller
e8b9509c16
abstract/modular: add more comments everywhere
2023-08-11 12:23:52 +02:00
Paul Miller
d92c9d14ad
README: update Field documentation, reformat with prettier
2023-08-11 12:23:19 +02:00
Paul Miller
05794c0283
weierstrass, bls: improve randomPrivateKey security and decrease bias
2023-08-11 12:22:37 +02:00
Paul Miller
ca5583f713
ed25519, ed448: rename hash_to_ristretto to hashToRistretto. And decaf
2023-08-10 20:01:13 +02:00
Paul Miller
8c48abe16a
Lint
2023-08-08 15:43:31 +02:00
Paul Miller
08bb00cc8f
poseidon: prohibit sBoxPower other than 3, 5, 7
2023-08-08 15:43:14 +02:00
Paul Miller
1ef16033fe
readme
2023-08-07 13:54:02 +02:00
Paul Miller
113b6d7c00
readme
2023-08-07 13:48:18 +02:00
Paul Miller
5c3dc0be50
README: more blog posts
2023-08-07 13:45:38 +02:00
Paul Miller
e7d01f4038
Update README.md
2023-08-07 13:11:30 +02:00
Paul Miller
9a39625eda
test: lint
2023-08-05 11:25:56 +02:00
Paul Miller
af8462b09e
tests/bls12: fix crashes on zero messages
2023-08-05 10:56:52 +02:00
Paul Miller
bfd9ae040d
readme: add alt_bn128
2023-08-05 01:19:42 +02:00
Paul Miller
2bd437df4e
readme
2023-08-05 00:47:59 +02:00
Paul Miller
b0af0a8977
readme
2023-08-05 00:31:41 +02:00
Paul Miller
aee10c8141
readme
2023-07-18 09:11:24 +02:00
Paul Miller
ff92bafb6f
readme
2023-07-18 09:09:01 +02:00
Paul Miller
54679ff788
Usage
2023-07-18 09:08:28 +02:00
Paul Miller
ee4571c7a1
readme: toc
2023-07-18 09:07:11 +02:00
Paul Miller
fe7afdd392
readme
2023-07-16 06:31:52 +02:00
Paul Miller
dba2f0e732
lint
2023-07-12 23:58:30 +02:00
Paul Miller
52c5df0264
utils: add PURE flag
2023-07-12 20:28:45 +02:00
Paul Miller
ebea4a4bcd
weierstrass, bls12-381: adjust var names for typescript flag
2023-07-12 20:28:38 +02:00
Paul Miller
33a53006f7
build: update esbuild
2023-07-12 20:28:11 +02:00
Paul Miller
549e286ef0
package.json: declare side-effects free
2023-07-12 20:26:12 +02:00
Paul Miller
3f0c0b59f1
readme
2023-07-11 19:00:56 +02:00
Paul Miller
62205347e1
readme for finalExponentiate
2023-07-11 18:59:40 +02:00
Paul Miller
476e75104f
Merge pull request #62 from steveluscher/pure-and-twisted
...
Add pure annotation to all calls to `twistedEdwards`
2023-07-01 04:27:31 +02:00
steveluscher
413725cfb3
Add pure annotation to all calls to twistedEdwards
...
This PR makes it so that if you only use _one_ export:
```ts
import { ed25519 } from '@noble/curves`;
```
…then only the `twistedEdwards` call that constructs that export will remain after bundling and tree-shaking.
Before this change, the compiled bundle contains all the code that constructs `ed25519ph` and `ed25519ctx` remains.
```js
var ed25519 = twistedEdwards(ed25519Defaults);
function ed25519_domain(data, ctx, phflag) {
if (ctx.length > 255)
throw new Error("Context is too big");
return concatBytes(utf8ToBytes("SigEd25519 no Ed25519 collisions"), new Uint8Array([phflag ? 1 : 0, ctx.length]), ctx, data);
}
twistedEdwards({ ...ed25519Defaults, domain: ed25519_domain });
twistedEdwards({
...ed25519Defaults,
domain: ed25519_domain,
prehash: sha512
});
```
```js
var ed25519 = twistedEdwards(ed25519Defaults);
```
2023-06-30 17:36:16 +00:00