Documentation ¶
Index ¶
- type OneOutOfManyProof
- func (proof OneOutOfManyProof) Bytes() []byte
- func (proof *OneOutOfManyProof) Init() *OneOutOfManyProof
- func (proof *OneOutOfManyProof) Set(commitments []*privacy.Point, cl, ca, cb, cd []*privacy.Point, ...)
- func (proof *OneOutOfManyProof) SetBytes(bytes []byte) error
- func (proof OneOutOfManyProof) ValidateSanity() bool
- func (proof OneOutOfManyProof) Verify() (bool, error)
- type OneOutOfManyStatement
- type OneOutOfManyWitness
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OneOutOfManyProof ¶
type OneOutOfManyProof struct { Statement *OneOutOfManyStatement // contains filtered or unexported fields }
Statement's proof
func (OneOutOfManyProof) Bytes ¶
func (proof OneOutOfManyProof) Bytes() []byte
Bytes converts one of many proof to bytes array
func (*OneOutOfManyProof) Init ¶
func (proof *OneOutOfManyProof) Init() *OneOutOfManyProof
func (*OneOutOfManyProof) Set ¶
func (proof *OneOutOfManyProof) Set( commitments []*privacy.Point, cl, ca, cb, cd []*privacy.Point, f, za, zb []*privacy.Scalar, zd *privacy.Scalar)
Set sets Proof
func (*OneOutOfManyProof) SetBytes ¶
func (proof *OneOutOfManyProof) SetBytes(bytes []byte) error
SetBytes converts an array of bytes to an object of OneOutOfManyProof
func (OneOutOfManyProof) ValidateSanity ¶
func (proof OneOutOfManyProof) ValidateSanity() bool
func (OneOutOfManyProof) Verify ¶
func (proof OneOutOfManyProof) Verify() (bool, error)
Verify verifies a proof output by Prove
type OneOutOfManyStatement ¶
Statement to be proved
func (*OneOutOfManyStatement) Set ¶
func (stmt *OneOutOfManyStatement) Set(commitments []*privacy.Point)
Set sets Statement
type OneOutOfManyWitness ¶
type OneOutOfManyWitness struct {
// contains filtered or unexported fields
}
Statement's witness
func (OneOutOfManyWitness) Prove ¶
func (wit OneOutOfManyWitness) Prove() (*OneOutOfManyProof, error)
Prove produces a proof for the statement
Click to show internal directories.
Click to hide internal directories.