Documentation ¶
Index ¶
Constants ¶
View Source
const ( // StatusNone is regarded as a challenge is not in progress. // The other status are regarded as a challenge is in progress. StatusNone uint8 = iota StatusChallengerTurn StatusAsserterTurn StatusChallengerTimeout StatusAsserterTimeout StatusReadyToProve )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fetcher ¶
type Fetcher struct { Client JsonRPCProverClient // contains filtered or unexported fields }
func NewFetcher ¶
func (*Fetcher) FetchProofAndPair ¶
type JsonRPCProverClient ¶
type JsonRPCProverClient struct {
// contains filtered or unexported fields
}
func (JsonRPCProverClient) Prove ¶
func (c JsonRPCProverClient) Prove(ctx context.Context, traceString string, proofType ProofType) (*ProveResponse, error)
type JsonRpcError ¶
type JsonRpcError struct { Code int `json:"code"` Message string `json:"message"` Data any `json:"data"` }
func (*JsonRpcError) Error ¶
func (j *JsonRpcError) Error() string
type ProveResponse ¶
type ProverClient ¶
type Segments ¶
func NewEmptySegments ¶
func NewSegments ¶
func (*Segments) BlockNumbers ¶
func (*Segments) NextSegmentsRange ¶
func (*Segments) SetHashValue ¶
Click to show internal directories.
Click to hide internal directories.