paulmillr / noble-curves

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

Fix `weierstrassPoints` missing CURVE object #92

Closed secure12 closed 8 months ago

secure12 commented 8 months ago

weierstrassPoints returns the validated CURVE object, but it is not in CurvePointsRes. As a result, the CURVE objects of G1 and G2 in bls12-381 are not accessible.

This PR explicitly adds the CURVE object type in CurvePointsRes