forked from tornado-packages/noble-curves
Merge pull request #133 from carleeto/main
Fix montgomery sample code in README.md
This commit is contained in:
commit
8ad2f9a185
@ -555,7 +555,7 @@ import { Field } from '@noble/curves/abstract/modular';
|
|||||||
const x25519 = montgomery({
|
const x25519 = montgomery({
|
||||||
a: 486662n,
|
a: 486662n,
|
||||||
Gu: 9n,
|
Gu: 9n,
|
||||||
Fp: Field(2n ** 255n - 19n),
|
P: 2n ** 255n - 19n,
|
||||||
montgomeryBits: 255,
|
montgomeryBits: 255,
|
||||||
nByteLength: 32,
|
nByteLength: 32,
|
||||||
// Optional param
|
// Optional param
|
||||||
|
Loading…
Reference in New Issue
Block a user