Versions in this module Expand all Collapse all v0 v0.1.1 May 16, 2026 v0.1.0 Mar 12, 2026 Changes in this version + func BytesToUint32(b []byte) uint32 + func BytesToUint64(b []byte) uint64 + func Uint32ToBytes(v uint32) []byte + func Uint64ToBytes(v uint64) []byte + type ID [32]byte + func ComputeRequestID(serviceID, sessionID, txID ID, step, retry uint32) ID + func ComputeSessionID(serviceID ID, epoch uint64, txID ID) ID + func Hash(data []byte) ID + func HashMulti(parts ...[]byte) ID + func HashWithDomain(domain string, data []byte) ID + func IDFromBytes(b []byte) ID + func (id ID) Bytes() []byte + func (id ID) Empty() bool + func (id ID) String() string + type Session struct + Committee []ID + CreatedAt time.Time + CurrentStep uint32 + Epoch uint64 + Error string + FinalizedAt time.Time + ID ID + OracleRoot ID + OutputHash ID + ReceiptsRoot ID + ServiceID ID + State SessionState + Steps []*Step + TxID ID + func NewSession(serviceID ID, epoch uint64, txID ID, committee []ID) *Session + type SessionState uint8 + const SessionStateFailed + const SessionStateFinalized + const SessionStatePending + const SessionStateRunning + const SessionStateWaitingIO + func (s SessionState) String() string + type Step struct + AttestationID ID + CompletedAt time.Time + InputHash ID + Kind StepKind + OracleCommitRoot ID + OutputHash ID + RequestID ID + RetryIndex uint32 + StartedAt time.Time + State StepState + StepIndex uint32 + TxID ID + func NewOracleStep(index uint32, kind StepKind, serviceID, sessionID, txID, inputHash ID, ...) *Step + func NewStep(index uint32, kind StepKind, txID ID, inputHash ID) *Step + type StepKind uint8 + const StepKindCompute + const StepKindReadExternal + const StepKindWriteExternal + func (k StepKind) RequiresOracle() bool + func (k StepKind) String() string + type StepState uint8 + const StepStateCompleted + const StepStateExecuting + const StepStateFailed + const StepStatePending + const StepStateWaiting + func (s StepState) String() string