Fix montgomery sample code in README.md

Resolves https://github.com/paulmillr/noble-curves/issues/132
This commit is contained in:
Carl Menezes 2024-03-25 11:17:28 +13:00 committed by GitHub
parent 819514576c
commit be576b4c17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -555,7 +555,7 @@ import { Field } from '@noble/curves/abstract/modular';
const x25519 = montgomery({
a: 486662n,
Gu: 9n,
Fp: Field(2n ** 255n - 19n),
P: 2n ** 255n - 19n,
montgomeryBits: 255,
nByteLength: 32,
// Optional param