serialnumbernoprivacy

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: 3 Imported by: 0

Documentation

Index

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

func (SNNoPrivacyProof) Verify

func (pro SNNoPrivacyProof) Verify(mess []byte) (bool, error)

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)

func (*SNNoPrivacyWitness) Set

func (wit *SNNoPrivacyWitness) Set(
	output *privacy.Point,
	vKey *privacy.Point,
	input *privacy.Scalar,
	seed *privacy.Scalar)

Set sets Witness

type SerialNumberNoPrivacyStatement

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

Jump to

Keyboard shortcuts

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