subchain

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

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

func (*Protocol) Handle

Handle handles how to mutate the state db given the multi-chain action on sub-chain

func (*Protocol) Validate

func (p *Protocol) Validate(_ context.Context, act action.Action) error

Validate validates the multi-chain action on sub-chain

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL