Documentation ¶ Index ¶ type Commitment type Private type Proof func NewProof(private Private, hash *hash.Hash, public Public) *Proof func (p *Proof) Verify(public Public, hash *hash.Hash) bool type Public Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Commitment ¶ type Commitment struct { P *saferith.Nat Q *saferith.Nat A *saferith.Nat B *saferith.Nat T *saferith.Nat } type Private ¶ type Private struct { P, Q *saferith.Nat } type Proof ¶ type Proof struct { Comm Commitment Sigma *saferith.Int Z1 *saferith.Int Z2 *saferith.Int W1 *saferith.Int W2 *saferith.Int V *saferith.Int } func NewProof ¶ func NewProof(private Private, hash *hash.Hash, public Public) *Proof func (*Proof) Verify ¶ func (p *Proof) Verify(public Public, hash *hash.Hash) bool type Public ¶ type Public struct { N *saferith.Modulus Aux *pedersen.Parameters } Source Files ¶ View all Source files fac.go Click to show internal directories. Click to hide internal directories.