taurushq-io / multi-party-sig

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

Make math/sample functions take Readers for randomness #6

Closed cronokirby closed 3 years ago

cronokirby commented 3 years ago

This follows the lead of go/crypto for example, and allows consumers to choose their own source of randomness instead of having to use Go's (although they should, in most cases).

This also allows us to conveniently use the result of a hash, for example when generating challenges in ZK proofs. This use case is a lot cooler, and would actually simplify logic.