Expand description
This file is a modified version of ING bank’s range proofs implementation: https://github.com/ing-bank/threshold-signatures/blob/master/src/algorithms/zkp.rs
Zero knowledge range proofs for MtA protocol are implemented here. Formal description can be found in Appendix A of https://eprint.iacr.org/2019/114.pdf There are some deviations from the original specification:
- In Bob’s proofs
gammais sampled from[0;q^2 * N]andtaufrom[0;q^3 * N_tilde]. - A non-interactive version is implemented, with challenge
ecomputed via Fiat-Shamir.
Structs§
- Alice
Proof - Alice’s proof
- BobCheck
- Additional fields in Bob’s proof if MtA is run with check
- BobProof
- Bob’s regular proof
- BobProof
Ext - Bob’s extended proof, adds the knowledge of $
B = g^b \in \mathcal{G}$
Traits§
- Sample
From Multiplicative Group - sample random value of an element of a multiplicative group