Documentation ¶
Index ¶
- Variables
- func ConvertUint64ToBinary(number uint64, n int) []*operation.Scalar
- func EstimateMultiRangeProofSize(nOutput int) uint64
- func VerifyBatch(proofs []*AggregatedRangeProof) (bool, error, int)
- type AggregatedRangeProof
- func (proof AggregatedRangeProof) Bytes() []byte
- func (proof AggregatedRangeProof) GetCommitments() []*operation.Point
- func (proof *AggregatedRangeProof) Init()
- func (proof AggregatedRangeProof) IsNil() bool
- func (proof *AggregatedRangeProof) SetBytes(bytes []byte) error
- func (proof *AggregatedRangeProof) SetCommitments(cmsValue []*operation.Point)
- func (proof AggregatedRangeProof) ValidateSanity() bool
- func (proof AggregatedRangeProof) Verify() (bool, error)
- func (proof AggregatedRangeProof) VerifyFaster() (bool, error)
- type AggregatedRangeWitness
- type BulletproofsLogger
- type InnerProductProof
- func (proof InnerProductProof) Bytes() []byte
- func (inner *InnerProductProof) Init() *InnerProductProof
- func (proof *InnerProductProof) SetBytes(bytes []byte) error
- func (proof InnerProductProof) ValidateSanity() bool
- func (proof InnerProductProof) Verify(GParam []*operation.Point, HParam []*operation.Point, uParam *operation.Point, ...) bool
- func (proof InnerProductProof) VerifyFaster(GParam []*operation.Point, HParam []*operation.Point, uParam *operation.Point, ...) bool
- type InnerProductWitness
Constants ¶
This section is empty.
Variables ¶
View Source
var AggParam = newBulletproofParams(privacy_util.MaxOutputCoin)
View Source
var Logger = BulletproofsLogger{}
Global instant to use
Functions ¶
func ConvertUint64ToBinary ¶
ConvertIntToBinary represents a integer number in binary
func EstimateMultiRangeProofSize ¶
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 (wit AggregatedRangeWitness) Prove() (*AggregatedRangeProof, error)
type BulletproofsLogger ¶
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
type InnerProductWitness ¶
type InnerProductWitness struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.