Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2016 Changes in this version + type Communicator interface + Broadcast func(msg *pb.OpenchainMessage, peerType pb.PeerEndpoint_Type) error + Unicast func(msg *pb.OpenchainMessage, receiverHandle *pb.PeerID) error + type Consenter interface + RecvMsg func(msg *pb.OpenchainMessage, senderHandle *pb.PeerID) error + type Executor interface + BeginTxBatch func(id interface{}) error + CommitTxBatch func(id interface{}, metadata []byte) (*pb.Block, error) + ExecTxs func(id interface{}, txs []*pb.Transaction) ([]byte, error) + PreviewCommitTxBatch func(id interface{}, metadata []byte) (*pb.Block, error) + RollbackTxBatch func(id interface{}) error + type Inquirer interface + GetNetworkHandles func() (self *pb.PeerID, network []*pb.PeerID, err error) + GetNetworkInfo func() (self *pb.PeerEndpoint, network []*pb.PeerEndpoint, err error) + type Ledger interface + type LedgerStack interface + type ReadOnlyLedger interface + GetBlock func(id uint64) (block *pb.Block, err error) + GetBlockchainSize func() (uint64, error) + GetCurrentStateHash func() (stateHash []byte, err error) + type RemoteLedgers interface + GetRemoteBlocks func(replicaID *pb.PeerID, start, finish uint64) (<-chan *pb.SyncBlocks, error) + GetRemoteStateDeltas func(replicaID *pb.PeerID, start, finish uint64) (<-chan *pb.SyncStateDeltas, error) + GetRemoteStateSnapshot func(replicaID *pb.PeerID) (<-chan *pb.SyncStateSnapshot, error) + type SecurityUtils interface + Sign func(msg []byte) ([]byte, error) + Verify func(peerID *pb.PeerID, signature []byte, message []byte) error + type Stack interface + type UtilLedger interface + HashBlock func(block *pb.Block) ([]byte, error) + VerifyBlockchain func(start, finish uint64) (uint64, error) + type WritableLedger interface + ApplyStateDelta func(id interface{}, delta *statemgmt.StateDelta) error + CommitStateDelta func(id interface{}) error + EmptyState func() error + PutBlock func(blockNumber uint64, block *pb.Block) error + RollbackStateDelta func(id interface{}) error