taurushq-io / multi-party-sig

Implementation of protocols for threshold signatures
Apache License 2.0
311 stars 120 forks source link

Implement Marshalling for result structs containing Group elements #58

Closed cronokirby closed 3 years ago

cronokirby commented 3 years ago

Fixes #57.

This changes these structs to require calling an EmptyResult(group) method, to fix the group used for unmarshalling.

johnthethird commented 3 years ago

@cronokirby Wow as someone coming from Ruby/Python this is a mind-blower 🤯. Thank you for the master-class on how to build marshalable data structures in Go.