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
Paul Miller
cf17f7fe01
readme
2023-06-28 17:33:13 +02:00
Paul Miller
49fb90ae9a
Add README link to new library noble-ciphers
2023-06-28 16:04:09 +02:00
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
Paul Miller
5609ec7644
Adjust readme docs on sig key recovery
2023-06-27 01:38:02 +02:00
Paul Miller
af8c1eebee
Merge pull request #59 from stknob/decaf448
...
Add decaf448
2023-06-27 00:32:53 +02:00
Stefan Knoblich
08ea57ce5c
Expand ristretto255 and ed448 + decaf448 README section
...
Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
2023-06-26 22:48:48 +02:00
Stefan Knoblich
ee3d3815b4
Add benchmarks for hash_to_ristretto255 and hash_to_decaf448
...
Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
2023-06-26 22:48:48 +02:00
Stefan Knoblich
f471405798
Add benchmarks for ristretto255 and decaf448
...
Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
2023-06-26 22:48:48 +02: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
c2edc97868
Merge pull request #58 from sublimator/nd-validate-dst-as-stringoruint8array-closes-57-2023-06-22
...
fix: validate hash_to_field DST as stringOrUint8Array (closes #57 )
2023-06-23 00:27:24 +02:00
Nicholas Dudfield
bf70ba9776
fix: validate hash_to_field DST as stringOrUint8Array ( closes #57 )
2023-06-22 07:19:08 +07:00
Evgeny Vlasenko
c71920722c
fix: check extraEntropy according to the spec
2023-06-16 19:43:12 +04:00
Paul Miller
62e806cfaf
Release 1.1.0.
1.1.0
2023-06-03 14:31:43 +02:00
Paul Miller
6a72821185
readme
2023-06-03 14:27:05 +02:00
Paul Miller
8cee1f559f
Bump noble-hashes to 1.3.1
2023-06-03 14:23:18 +02:00
Paul Miller
6f10632ac0
Add build directory that allows to test tree-shaking
2023-06-02 17:16:56 +02:00
Paul Miller
b281167e8d
Fix utf8ToBytes in firefox extension context
2023-06-02 15:57:46 +02:00
Paul Miller
c6b4aadafb
utils: harmonize with noble-hashes
2023-06-02 15:35:37 +02:00
Paul Miller
aade023e48
pkg.json: Adjust funding field
2023-05-27 16:10:58 +02:00
Paul Miller
2e04d96ce9
readme
2023-05-26 13:27:41 +02:00
Paul Miller
79dd7d3426
readme
2023-05-20 12:34:51 +02:00