Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DepositIndex ¶
type DepositIndex byte
DepositIndex represents the deposit index
func (*DepositIndex) Deserialize ¶
func (di *DepositIndex) Deserialize(data []byte) error
Deserialize deserializes bytes into deposit index
func (DepositIndex) Serialize ¶
func (di DepositIndex) Serialize() ([]byte, error)
Serialize serializes deposit index into bytes
type Protocol ¶
type Protocol struct {
// contains filtered or unexported fields
}
Protocol defines the protocol to handle multi-chain actions on sub-chain
func NewProtocol ¶
func NewProtocol(chain blockchain.Blockchain, mainChainAPI explorer.Explorer) *Protocol
NewProtocol constructs a sub-chain protocol on sub-chain
Click to show internal directories.
Click to hide internal directories.