bulletproofs

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AggParam = newBulletproofParams(privacy_util.MaxOutputCoin)

Global instant to use

Functions

func ConvertUint64ToBinary

func ConvertUint64ToBinary(number uint64, n int) []*operation.Scalar

ConvertIntToBinary represents a integer number in binary

func EstimateMultiRangeProofSize

func EstimateMultiRangeProofSize(nOutput int) uint64

estimateMultiRangeProofSize estimate multi range proof size

func VerifyBatch

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

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) VerifyFaster

func (proof AggregatedRangeProof) VerifyFaster() (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 []*operation.Scalar)

type BulletproofsLogger

type BulletproofsLogger struct {
	Log common.Logger
}

func (*BulletproofsLogger) Init

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

type InnerProductProof

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

func (InnerProductProof) Bytes

func (proof InnerProductProof) Bytes() []byte

func (*InnerProductProof) Init

func (inner *InnerProductProof) Init() *InnerProductProof

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(GParam []*operation.Point, HParam []*operation.Point, uParam *operation.Point, hashCache []byte) bool

func (InnerProductProof) VerifyFaster

func (proof InnerProductProof) VerifyFaster(GParam []*operation.Point, HParam []*operation.Point, uParam *operation.Point, hashCache []byte) bool

type InnerProductWitness

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

func (InnerProductWitness) Prove

func (wit InnerProductWitness) Prove(GParam []*operation.Point, HParam []*operation.Point, uParam *operation.Point, hashCache []byte) (*InnerProductProof, error)

Jump to

Keyboard shortcuts

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