serialnumberprivacy

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SNPrivacyProof

type SNPrivacyProof struct {
	// contains filtered or unexported fields
}

func (SNPrivacyProof) Bytes

func (proof SNPrivacyProof) Bytes() []byte

func (SNPrivacyProof) GetComInput

func (proof SNPrivacyProof) GetComInput() *privacy.Point

func (SNPrivacyProof) GetComSK

func (proof SNPrivacyProof) GetComSK() *privacy.Point

func (SNPrivacyProof) GetSN

func (proof SNPrivacyProof) GetSN() *privacy.Point

func (*SNPrivacyProof) Init

func (proof *SNPrivacyProof) Init() *SNPrivacyProof

Init inits Proof

func (*SNPrivacyProof) Set

func (proof *SNPrivacyProof) Set(
	stmt *SerialNumberPrivacyStatement,
	tSK *privacy.Point,
	tInput *privacy.Point,
	tSN *privacy.Point,
	zSK *privacy.Scalar,
	zRSK *privacy.Scalar,
	zInput *privacy.Scalar,
	zRInput *privacy.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

func (SNPrivacyProof) Verify

func (proof SNPrivacyProof) Verify(mess []byte) (bool, error)

type SNPrivacyWitness

type SNPrivacyWitness struct {
	// contains filtered or unexported fields
}

func (SNPrivacyWitness) Prove

func (wit SNPrivacyWitness) Prove(mess []byte) (*SNPrivacyProof, error)

func (*SNPrivacyWitness) Set

Set sets Witness

type SerialNumberPrivacyStatement

type SerialNumberPrivacyStatement struct {
	// contains filtered or unexported fields
}

func (*SerialNumberPrivacyStatement) Set

func (stmt *SerialNumberPrivacyStatement) Set(
	SN *privacy.Point,
	comSK *privacy.Point,
	comInput *privacy.Point)

Set sets Statement

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL