From be576b4c17871969562c92abfe803ced3e0b9a12 Mon Sep 17 00:00:00 2001 From: Carl Menezes Date: Mon, 25 Mar 2024 11:17:28 +1300 Subject: [PATCH] Fix montgomery sample code in README.md Resolves https://github.com/paulmillr/noble-curves/issues/132 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e7de1c6..81ec554 100644 --- a/README.md +++ b/README.md @@ -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