serialnumbernoprivacy

package
v0.0.0-...-7ece11e Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

func (SNNoPrivacyProof) Verify

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

func (SNNoPrivacyProof) VerifyOld

func (pro SNNoPrivacyProof) VerifyOld(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 *operation.Point,
	vKey *operation.Point,
	input *operation.Scalar,
	seed *operation.Scalar)

Set sets Witness

type SerialNumberNoPrivacyStatement

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

type SerialnumbernoprivacyLogger

type SerialnumbernoprivacyLogger struct {
	Log common.Logger
}

func (*SerialnumbernoprivacyLogger) Init

func (logger *SerialnumbernoprivacyLogger) Init(inst common.Logger)

Jump to

Keyboard shortcuts

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