Documentation ¶
Index ¶
- type SNNoPrivacyProof
- func (pro SNNoPrivacyProof) Bytes() []byte
- func (pro SNNoPrivacyProof) GetInput() *privacy.Scalar
- func (pro SNNoPrivacyProof) GetOutput() *privacy.Point
- func (pro SNNoPrivacyProof) GetVKey() *privacy.Point
- func (pro *SNNoPrivacyProof) Init() *SNNoPrivacyProof
- func (pro *SNNoPrivacyProof) Set(output *privacy.Point, vKey *privacy.Point, input *privacy.Scalar, ...)
- func (pro *SNNoPrivacyProof) SetBytes(bytes []byte) error
- func (proof SNNoPrivacyProof) ValidateSanity() bool
- func (pro SNNoPrivacyProof) Verify(mess []byte) (bool, error)
- type SNNoPrivacyWitness
- type SerialNumberNoPrivacyStatement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SNNoPrivacyProof ¶
type SNNoPrivacyProof struct {
// contains filtered or unexported fields
}
serialNumberNNoPrivacyProof contains Proof's value
func (SNNoPrivacyProof) Bytes ¶
func (pro SNNoPrivacyProof) Bytes() []byte
func (SNNoPrivacyProof) GetInput ¶
func (pro SNNoPrivacyProof) GetInput() *privacy.Scalar
func (SNNoPrivacyProof) GetOutput ¶
func (pro SNNoPrivacyProof) GetOutput() *privacy.Point
func (SNNoPrivacyProof) GetVKey ¶
func (pro SNNoPrivacyProof) GetVKey() *privacy.Point
func (*SNNoPrivacyProof) Init ¶
func (pro *SNNoPrivacyProof) Init() *SNNoPrivacyProof
func (*SNNoPrivacyProof) Set ¶
func (pro *SNNoPrivacyProof) Set( output *privacy.Point, vKey *privacy.Point, input *privacy.Scalar, tSeed *privacy.Point, tOutput *privacy.Point, zSeed *privacy.Scalar)
Set sets Proof
func (*SNNoPrivacyProof) SetBytes ¶
func (pro *SNNoPrivacyProof) SetBytes(bytes []byte) error
func (SNNoPrivacyProof) ValidateSanity ¶
func (proof SNNoPrivacyProof) ValidateSanity() bool
type SNNoPrivacyWitness ¶
type SNNoPrivacyWitness struct {
// contains filtered or unexported fields
}
SNNoPrivacyWitness is a protocol for Zero-knowledge Proof of Knowledge of one out of many commitments containing 0 include Witness: CommitedValue, r []byte
func (SNNoPrivacyWitness) Prove ¶
func (wit SNNoPrivacyWitness) Prove(mess []byte) (*SNNoPrivacyProof, error)
type SerialNumberNoPrivacyStatement ¶
type SerialNumberNoPrivacyStatement struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.