Documentation ¶ Index ¶ type Verifier func NewVerifier(cfg *kzg.KzgConfig) (*Verifier, error) func (v *Verifier) Commit(blob []byte) (*bn254.G1Affine, error) func (v *Verifier) Verify(expectedCommit *common.G1Commitment, blob []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Verifier ¶ type Verifier struct { // contains filtered or unexported fields } func NewVerifier ¶ func NewVerifier(cfg *kzg.KzgConfig) (*Verifier, error) func (*Verifier) Commit ¶ func (v *Verifier) Commit(blob []byte) (*bn254.G1Affine, error) func (*Verifier) Verify ¶ func (v *Verifier) Verify(expectedCommit *common.G1Commitment, blob []byte) error Verify regenerates a commitment from the blob and asserts equivalence to the commitment in the certificate TODO: Optimize implementation by opening a point on the commitment instead Source Files ¶ View all Source files verifier.go Click to show internal directories. Click to hide internal directories.