Documentation ¶
Index ¶
- Variables
- type SNNoPrivacyProof
- func (pro SNNoPrivacyProof) Bytes() []byte
- func (proof SNNoPrivacyProof) GetInput() *operation.Scalar
- func (proof SNNoPrivacyProof) GetOutput() *operation.Point
- func (proof SNNoPrivacyProof) GetVKey() *operation.Point
- func (pro *SNNoPrivacyProof) Init() *SNNoPrivacyProof
- func (pro *SNNoPrivacyProof) Set(output *operation.Point, vKey *operation.Point, input *operation.Scalar, ...)
- func (pro *SNNoPrivacyProof) SetBytes(bytes []byte) error
- func (proof SNNoPrivacyProof) ValidateSanity() bool
- func (pro SNNoPrivacyProof) Verify(mess []byte) (bool, error)
- func (pro SNNoPrivacyProof) VerifyOld(mess []byte) (bool, error)
- type SNNoPrivacyWitness
- type SerialNumberNoPrivacyStatement
- type SerialnumbernoprivacyLogger
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = SerialnumbernoprivacyLogger{}
Global instant to use
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 (proof SNNoPrivacyProof) GetInput() *operation.Scalar
func (SNNoPrivacyProof) GetOutput ¶
func (proof SNNoPrivacyProof) GetOutput() *operation.Point
func (SNNoPrivacyProof) GetVKey ¶
func (proof SNNoPrivacyProof) GetVKey() *operation.Point
func (*SNNoPrivacyProof) Init ¶
func (pro *SNNoPrivacyProof) Init() *SNNoPrivacyProof
func (*SNNoPrivacyProof) Set ¶
func (pro *SNNoPrivacyProof) Set( output *operation.Point, vKey *operation.Point, input *operation.Scalar, tSeed *operation.Point, tOutput *operation.Point, zSeed *operation.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
}
type SerialnumbernoprivacyLogger ¶
func (*SerialnumbernoprivacyLogger) Init ¶
func (logger *SerialnumbernoprivacyLogger) Init(inst common.Logger)
Click to show internal directories.
Click to hide internal directories.