Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyProofProducer ¶
type DummyProofProducer struct { RandomDummyProofDelayLowerBound *time.Duration RandomDummyProofDelayUpperBound *time.Duration }
DummyProofProducer always returns a dummy proof.
func (*DummyProofProducer) RequestProof ¶
func (d *DummyProofProducer) RequestProof( opts *ProofRequestOptions, blockID *big.Int, meta *bindings.LibDataBlockMetadata, header *types.Header, resultCh chan *ProofWithHeader, ) error
RequestProof implements the ProofProducer interface.
type ProofProducer ¶
type ProofProducer interface { RequestProof( opts *ProofRequestOptions, blockID *big.Int, meta *bindings.LibDataBlockMetadata, header *types.Header, resultCh chan *ProofWithHeader, ) error }
type ProofRequestOptions ¶
type ProofRequestOptions struct { Height *big.Int // the block number Meta *bindings.LibDataBlockMetadata // block meta data L2Endpoint string // a L2 execution engine's RPC endpoint Retry bool // retry proof computation if error Param string // parameter file to use }
ProofRequestOptions contains all options that need to be passed to zkEVM rpcd service.
type ProofWithHeader ¶
type ZkevmRpcdProducer ¶
type ZkevmRpcdProducer struct {
RpcdEndpoint string
}
func NewZkevmRpcdProducer ¶
func NewZkevmRpcdProducer(rpcdEndpoint string) (*ZkevmRpcdProducer, error)
func (*ZkevmRpcdProducer) RequestProof ¶
func (d *ZkevmRpcdProducer) RequestProof( opts *ProofRequestOptions, blockID *big.Int, meta *bindings.LibDataBlockMetadata, header *types.Header, resultCh chan *ProofWithHeader, ) error
RequestProof implements the ProofProducer interface.
Click to show internal directories.
Click to hide internal directories.