paulmillr / noble-curves

Audited & minimal JS implementation of elliptic curve cryptography.
https://paulmillr.com/noble
MIT License
621 stars 56 forks source link

Montgomery sample code doesn't compile. (PR submitted) #132

Closed carleeto closed 3 months ago

carleeto commented 3 months ago

The sample code for the Montgomery curve doesn't compile.

Code: image

Issue: Fp does not exist in CurveType

TS Error:

error TS2353: Object literal may only specify known properties, and 'Fp' does not exist in type 'CurveType'.
 Fp: Field(2n ** 255n - 19n)
carleeto commented 3 months ago

133 fixes it