blobdecompression

package
v0.0.0-...-35a8ded Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request = blobsubmission.Response

The decompression proof request is conveniently exactly the same as the response of the blobsubmission. Some fields are not used, but it simplifies the code.

type Response

type Response struct {
	// All the fields passed by the request. All with the same JSON spec
	Request

	// Version ID for the prover
	ProverVersion string `json:"proverVersion"`

	// The shasum of the verifier key to use to verify the proof. This is used
	// by the aggregation circuit to identify the circuit ID to use in the proof.
	VerifyingKeyShaSum string `json:"verifyingKeyShaSum"`

	// The proof produced to assess the decompression. In hexstring. The proof
	// is defined over the field bls12-377.
	DecompressionProof string `json:"decompressionProof"`

	// Debug fields that are helpful for debugging and access intermediate
	// values corresponding to the generated proof.
	Debug struct {
		// Expected public input of the proof
		PublicInput string `json:"publicInput"`
	} `json:"debug"`
}

The decompression proof response contains all the fields of the requests plus some prover related fields. We keep all the fields from the request so that we can be sure that the prover will have all the relevant fields.

func Prove

func Prove(cfg *config.Config, req *Request) (*Response, error)

Generates a concrete proof for the decompression of the blob

Jump to

Keyboard shortcuts

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