aggregatedrange

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AggParam = newBulletproofParams(numOutputParam)
View Source
var Logger = aggregatedrangeLogger{}

Global instant to use

Functions

func EstimateMultiRangeProofSize

func EstimateMultiRangeProofSize(nOutput int) uint64

estimateMultiRangeProofSize estimate multi range proof size

func VerifyBatch

func VerifyBatch(proofs []*AggregatedRangeProof) (bool, error, int)

func VerifyBatchOld

func VerifyBatchOld(proofs []*AggregatedRangeProof) (bool, error, int)

func VerifyBatchingInnerProductProofs

func VerifyBatchingInnerProductProofs(proofs []*InnerProductProof, csList [][]byte) bool

Types

type AggregatedRangeProof

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

func (AggregatedRangeProof) Bytes

func (proof AggregatedRangeProof) Bytes() []byte

func (AggregatedRangeProof) GetCommitments

func (proof AggregatedRangeProof) GetCommitments() []*operation.Point

func (*AggregatedRangeProof) Init

func (proof *AggregatedRangeProof) Init()

func (AggregatedRangeProof) IsNil

func (proof AggregatedRangeProof) IsNil() bool

func (*AggregatedRangeProof) SetBytes

func (proof *AggregatedRangeProof) SetBytes(bytes []byte) error

func (AggregatedRangeProof) SetCommitments

func (proof AggregatedRangeProof) SetCommitments(cmsValue []*operation.Point)

func (AggregatedRangeProof) ValidateSanity

func (proof AggregatedRangeProof) ValidateSanity() bool

func (AggregatedRangeProof) Verify

func (proof AggregatedRangeProof) Verify() (bool, error)

func (AggregatedRangeProof) VerifyOld

func (proof AggregatedRangeProof) VerifyOld() (bool, error)

type AggregatedRangeWitness

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

func (AggregatedRangeWitness) Prove

func (AggregatedRangeWitness) ProveOld

func (*AggregatedRangeWitness) Set

func (wit *AggregatedRangeWitness) Set(values []uint64, rands []*operation.Scalar)

type InnerProductProof

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

func (InnerProductProof) Bytes

func (proof InnerProductProof) Bytes() []byte

func (*InnerProductProof) SetBytes

func (proof *InnerProductProof) SetBytes(bytes []byte) error

func (InnerProductProof) ValidateSanity

func (proof InnerProductProof) ValidateSanity() bool

func (InnerProductProof) Verify

func (proof InnerProductProof) Verify(aggParam *bulletproofParams) bool

type InnerProductWitness

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

func (InnerProductWitness) Prove

func (wit InnerProductWitness) Prove(aggParam *bulletproofParams) (*InnerProductProof, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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