Documentation ¶
Index ¶
- Variables
- type SNPrivacyProof
- func (proof SNPrivacyProof) Bytes() []byte
- func (proof SNPrivacyProof) GetComInput() *operation.Point
- func (proof SNPrivacyProof) GetComSK() *operation.Point
- func (proof SNPrivacyProof) GetSN() *operation.Point
- func (proof *SNPrivacyProof) Init() *SNPrivacyProof
- func (proof *SNPrivacyProof) Set(stmt *SerialNumberPrivacyStatement, tSK *operation.Point, ...)
- func (proof *SNPrivacyProof) SetBytes(bytes []byte) error
- func (proof SNPrivacyProof) ValidateSanity() bool
- func (proof SNPrivacyProof) Verify(mess []byte) (bool, error)
- func (proof SNPrivacyProof) VerifyOld(mess []byte) (bool, error)
- type SNPrivacyWitness
- type SerialNumberPrivacyStatement
- type SerialnumberprivacyLogger
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = SerialnumberprivacyLogger{}
Global instant to use
Functions ¶
This section is empty.
Types ¶
type SNPrivacyProof ¶
type SNPrivacyProof struct {
// contains filtered or unexported fields
}
func Copy ¶
func Copy(proof SNPrivacyProof) *SNPrivacyProof
func (SNPrivacyProof) Bytes ¶
func (proof SNPrivacyProof) Bytes() []byte
func (SNPrivacyProof) GetComInput ¶
func (proof SNPrivacyProof) GetComInput() *operation.Point
func (SNPrivacyProof) GetComSK ¶
func (proof SNPrivacyProof) GetComSK() *operation.Point
func (SNPrivacyProof) GetSN ¶
func (proof SNPrivacyProof) GetSN() *operation.Point
func (*SNPrivacyProof) Set ¶
func (proof *SNPrivacyProof) Set( stmt *SerialNumberPrivacyStatement, tSK *operation.Point, tInput *operation.Point, tSN *operation.Point, zSK *operation.Scalar, zRSK *operation.Scalar, zInput *operation.Scalar, zRInput *operation.Scalar)
Set sets Proof
func (*SNPrivacyProof) SetBytes ¶
func (proof *SNPrivacyProof) SetBytes(bytes []byte) error
func (SNPrivacyProof) ValidateSanity ¶
func (proof SNPrivacyProof) ValidateSanity() bool
ValidateSanity validates sanity of proof
type SNPrivacyWitness ¶
type SNPrivacyWitness struct {
// contains filtered or unexported fields
}
func (SNPrivacyWitness) Prove ¶
func (wit SNPrivacyWitness) Prove(mess []byte) (*SNPrivacyProof, error)
type SerialNumberPrivacyStatement ¶
type SerialNumberPrivacyStatement struct {
// contains filtered or unexported fields
}
type SerialnumberprivacyLogger ¶
func (*SerialnumberprivacyLogger) Init ¶
func (logger *SerialnumberprivacyLogger) Init(inst common.Logger)
Click to show internal directories.
Click to hide internal directories.