LLFourn / secp256kfun

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

[frost] EncodedFrostKey BorrowDecode and correct markers #175

Closed nickfarrow closed 4 months ago

nickfarrow commented 4 months ago
LLFourn commented 4 months ago

ConceptACK

LLFourn commented 4 months ago

I've pushed two commits:

  1. 3435eae4d1a2bb5432d73d68096ab43c6c59f323 to bump the MSRV so tests pass
  2. e6e217e4b05bcebd6ee93bb7fead1daf69b1d3da to set the secret share to Scalar<Secret, Zero> and fix some misc things

One thing I noticed is that the shares index can be one u5 or 52 but nothing inbetween. I think it should be fine to allow it to be any length. I guess @nickfarrow didn't do this because it was tricky with the API (there is this convert_bits thing but it seems to be broken). It looks like it might be possible with the v0.10 branch.