Documentation
¶
Index ¶
- Constants
- func CloneByteSlices(src [][]byte) [][]byte
- type BlockHash
- type ChainID
- type DecisionState
- type EthAddress
- type Instance
- type InstanceID
- type PeriodID
- type SequenceNumber
- type SessionID
- type StateRoot
- type SuperblockHash
- type SuperblockNumber
- type TransactionRequest
- type TxHash
- type XTRequest
Constants ¶
View Source
const ( // Duration of a superblock period (10 Ethereum epochs). PeriodDuration = 10 * (32 * 12) * time.Second // 10 Ethereum epochs // Allowed window (in number of periods) to submit a valid ZK proof for a superblock. // After this window, the publisher should trigger a rollback. ProofWindow = 24 * 7 )
Variables ¶
This section is empty.
Functions ¶
func CloneByteSlices ¶
Types ¶
type DecisionState ¶
type DecisionState int
const ( DecisionStatePending DecisionState = iota DecisionStateAccepted DecisionStateRejected )
func (*DecisionState) String ¶
func (d *DecisionState) String() string
type EthAddress ¶
type EthAddress [20]byte
func (EthAddress) String ¶
func (a EthAddress) String() string
type Instance ¶
type Instance struct {
ID InstanceID
PeriodID PeriodID
SequenceNumber SequenceNumber
XTRequest XTRequest
}
type InstanceID ¶
type InstanceID [32]byte
func (InstanceID) String ¶
func (id InstanceID) String() string
type SequenceNumber ¶
type SequenceNumber uint64
type SuperblockHash ¶
type SuperblockHash [32]byte
type SuperblockNumber ¶
type SuperblockNumber uint64
type TransactionRequest ¶
type XTRequest ¶
type XTRequest struct {
Transactions []TransactionRequest
}
Click to show internal directories.
Click to hide internal directories.