boltlabs-inc / tss-ecdsa

An implementation of a threshold ECDSA signature scheme
Other
12 stars 5 forks source link

Add constructor for interactive signing input #481

Closed marsella closed 1 year ago

marsella commented 1 year ago

There's currently a public Input type in the interactive sign module that doesn't have a constructor. We'll need to make one for the public API to be usable.

The input type holds a Sha256 message digest and a presign input. However, I think the correct API for the constructor should take

I think this will make more sense to an external user, who doesn't necessarily care about presign and only knows that they ran keygen and auxinfo already. It also saves us from re-implementing all the validation on the presign input.