fpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SGX_MODE_HW  = "HW"
	SGX_MODE_SIM = "SIM"
)

Variables

This section is empty.

Functions

func ArgsToStrings

func ArgsToStrings(args [][]byte) []string

func CreateSIMAttestationParams

func CreateSIMAttestationParams() *sgx.AttestationParams

Types

type ChaincodeInput

type ChaincodeInput struct {
	Args []string `json:"Args"`
}

type ChannelClient

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

func (*ChannelClient) Execute

func (c *ChannelClient) Execute(chaincodeID string, fcn string, args [][]byte) (string, error)

func (*ChannelClient) Query

func (c *ChannelClient) Query(chaincodeID string, fcn string, args [][]byte, targetEndpoints ...string) ([]byte, error)

type ChannelContract

type ChannelContract struct {
	Network     *network.Network
	ChaincodeID string
	Channel     string
	CC          *topology.ChannelChaincode
}

func (*ChannelContract) CreateTransaction

func (c *ChannelContract) CreateTransaction(name string, peerEndpoints ...string) (fpc.Transaction, error)

func (*ChannelContract) EvaluateTransaction

func (c *ChannelContract) EvaluateTransaction(name string, args ...string) ([]byte, error)

func (*ChannelContract) Name

func (c *ChannelContract) Name() string

func (*ChannelContract) SubmitTransaction

func (c *ChannelContract) SubmitTransaction(name string, args ...string) ([]byte, error)

type ChannelProvider

type ChannelProvider struct {
	Network *network.Network
	CC      *topology.ChannelChaincode
}

func (*ChannelProvider) GetContract

func (c *ChannelProvider) GetContract(id string) fpc.Contract

type ChannelTransaction

type ChannelTransaction struct {
	Network      *network.Network
	ChaincodeID  string
	Channel      string
	CC           *topology.ChannelChaincode
	FunctionName string
}

func (*ChannelTransaction) Evaluate

func (c *ChannelTransaction) Evaluate(args ...string) ([]byte, error)

type Connection

type Connection struct {
	Address     string `json:"address"`
	DialTimeout string `json:"dial_timeout"`
	TlsRequired bool   `json:"tls_required"`
}

type Extension

type Extension struct {
	FPCERCC *topology.ChannelChaincode
	// contains filtered or unexported fields
}

func NewExtension

func NewExtension(network *nnetwork.Network) *Extension

func (*Extension) CheckTopology

func (n *Extension) CheckTopology()

func (*Extension) GenerateArtifacts

func (n *Extension) GenerateArtifacts()

func (*Extension) PostRun

func (n *Extension) PostRun(load bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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