paulmillr / noble-curves

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

Lack of method toRawBytes in interface ExtPointType #21

Closed drondov closed 1 year ago

drondov commented 1 year ago

It seems that there are no way to call toRawBytes in typescript without casting it to <any>.

const point = ed25519.ExtendedPoint.fromAffine(...);
const hex = Buffer.from((<any>point).toRawBytes()).toString('hex');
paulmillr commented 1 year ago

3936449