aggregaterange

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AggParam = newBulletproofParams(numOutputParam)

Functions

func EstimateMultiRangeProofSize

func EstimateMultiRangeProofSize(nOutput int) uint64

estimateMultiRangeProofSize estimate multi range proof size

func VerifyBatchingAggregatedRangeProofs

func VerifyBatchingAggregatedRangeProofs(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) GetCmValues

func (proof AggregatedRangeProof) GetCmValues() []*privacy.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) ValidateSanity

func (proof AggregatedRangeProof) ValidateSanity() bool

func (AggregatedRangeProof) Verify

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

type AggregatedRangeWitness

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

func (AggregatedRangeWitness) Prove

func (*AggregatedRangeWitness) Set

func (wit *AggregatedRangeWitness) Set(values []uint64, rands []*privacy.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