paritytech / libsecp256k1

Pure Rust Implementation of secp256k1.
Apache License 2.0
176 stars 84 forks source link

Consider exposing field, group, and scalar types as public? #23

Closed tuxxy closed 4 years ago

tuxxy commented 4 years ago

Hi, this library is really one-of-a-kind in that it's a pure rust implementation of secp256k1.

Is it at all possible that the authors would consider exposing the field, group, and scalar types as public types so that we can use them for arithmetic in other libraries to build and prototype with? We have a need for this on a library-in-progress from @nucypher and these exposed types would save a ton of work.

tuxxy commented 4 years ago

Bump please. There are literally no libraries in the rust ecosystem that support pure rust implementations for these primitives.

LLFourn commented 4 years ago

Note: these are public. Look under curve.

tuxxy commented 4 years ago

Ah, this is fantastic news! The last version I had played with was 0.3.0 which did not expose the arithmetic in the curve module.

Thanks for pinging me about this! I'll go ahead and close this now. :)