Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commitment ¶
Commitment = randomness•G, where
func EmptyCommitment ¶
func EmptyCommitment(group curve.Curve) *Commitment
func (Commitment) Domain ¶
func (Commitment) Domain() string
Domain implements hash.WriterToWithDomain
func (*Commitment) IsValid ¶
func (c *Commitment) IsValid() bool
type Proof ¶
type Proof struct { C Commitment Z Response }
func EmptyProof ¶
type Randomness ¶
type Randomness struct {
// contains filtered or unexported fields
}
Randomness = a ← ℤₚ.
func NewRandomness ¶
NewRandomness creates a new a ∈ ℤₚ and the corresponding commitment C = a•G. This can be used to run the proof in a non-interactive way.
func (*Randomness) Commitment ¶
func (r *Randomness) Commitment() *Commitment
Commitment returns the commitment C = a•G for the randomness a.
type Response ¶
Response = randomness + H(..., commitment, public)•secret (mod p).
func EmptyResponse ¶
Click to show internal directories.
Click to hide internal directories.