mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-27 00:55:17 +00:00
35561a9e41
* v1.4.19-p1 * remove integrity check from startup
43 lines
846 B
Go
43 lines
846 B
Go
package crypto
|
|
|
|
type InclusionCommitment struct {
|
|
TypeUrl string
|
|
Data []byte
|
|
Commitment []byte
|
|
}
|
|
|
|
type InclusionAggregateProof struct {
|
|
InclusionCommitments []*InclusionCommitment
|
|
AggregateCommitment []byte
|
|
Proof []byte
|
|
}
|
|
|
|
type InclusionProver interface {
|
|
// Commit(
|
|
// data []byte,
|
|
// typeUrl string,
|
|
// ) (*InclusionCommitment, error)
|
|
// ProveAggregate(commits []*InclusionCommitment) (
|
|
// *InclusionAggregateProof,
|
|
// error,
|
|
// )
|
|
// VerifyAggregate(proof *InclusionAggregateProof) (bool, error)
|
|
// VerifyFrame(frame *protobufs.ClockFrame) error
|
|
CommitRaw(
|
|
data []byte,
|
|
polySize uint64,
|
|
) ([]byte, error)
|
|
ProveRaw(
|
|
data []byte,
|
|
index int,
|
|
polySize uint64,
|
|
) ([]byte, error)
|
|
VerifyRaw(
|
|
data []byte,
|
|
commit []byte,
|
|
index int,
|
|
proof []byte,
|
|
polySize uint64,
|
|
) (bool, error)
|
|
}
|