LLFourn / secp256kfun

A pure-rust secp256k1 library optimised for fun
BSD Zero Clause License
102 stars 29 forks source link

Remove ScalarPoly and PointPoly #127

Closed LLFourn closed 1 year ago

LLFourn commented 2 years ago

II'm still thinking about this a bit.

What if we instead just make a ScalarVec and PointVec types that had poly_eval function which treats them as the coefficients of a polynomial.

Ok better yet why not just make extension traits for Vec<Point> and Vec<Scalar>?

@nickfarrow thoughts?

UPDATE

I decided to just trash both these types and provide helper methods in the frost module. This is simpler. Maybe one day we want to provide some tools for dealing with vectors/polynomials of points/scalars but not today!