tools

package
v0.0.0-...-7f528f5 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAuditpath

func ParseAuditpath(path []byte) ([]byte, []byte, [][32]byte, error)

Types

type CrossChainEvent

type CrossChainEvent struct {
	Data   []byte
	TxHash []byte
}

type FabricSdk

type FabricSdk struct {
	// contains filtered or unexported fields
}

func NewFabricSdk

func NewFabricSdk(channel, chaincode, confFile, user, org string) (*FabricSdk, error)

func (*FabricSdk) CrossChainTransfer

func (sdk *FabricSdk) CrossChainTransfer(crossChainTxProof []byte, header []byte, headerProof []byte, anchor []byte) error

func (*FabricSdk) GetCrossChainEvent

func (sdk *FabricSdk) GetCrossChainEvent(height uint64) ([]*CrossChainEvent, error)

func (*FabricSdk) GetLatestHeight

func (sdk *FabricSdk) GetLatestHeight() (uint64, error)

func (*FabricSdk) GetLatestSyncHeight

func (sdk *FabricSdk) GetLatestSyncHeight() (uint32, error)

func (*FabricSdk) GetTransactionValidateCode

func (sdk *FabricSdk) GetTransactionValidateCode(txId string) (int32, error)

func (*FabricSdk) Lock

func (sdk *FabricSdk) Lock()

func (*FabricSdk) PolyHeader

func (sdk *FabricSdk) PolyHeader(header []byte) error

func (*FabricSdk) RegisterCrossChainEvent

func (sdk *FabricSdk) RegisterCrossChainEvent() (fab.Registration, <-chan *fab.CCEvent, error)

func (*FabricSdk) Unregister

func (sdk *FabricSdk) Unregister(reg fab.Registration)

Jump to

Keyboard shortcuts

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