chaincode

package
v1.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0, MIT Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnclaveChaincode

type EnclaveChaincode struct {
	Enclave   enclave.StubInterface
	Validator endorsement.Validation
	Extractor Extractors
	Ercc      ercc.Stub
}

EnclaveChaincode struct

func (*EnclaveChaincode) Init

Init sets the chaincode state to "init"

func (*EnclaveChaincode) Invoke

Invoke receives transactions and forwards to op handlers

type ExtractorImpl

type ExtractorImpl struct {
}

func (*ExtractorImpl) GetChaincodeParams

func (s *ExtractorImpl) GetChaincodeParams(stub shim.ChaincodeStubInterface) (*protos.CCParameters, error)

func (*ExtractorImpl) GetHostParams

func (*ExtractorImpl) GetInitEnclaveMessage

func (s *ExtractorImpl) GetInitEnclaveMessage(stub shim.ChaincodeStubInterface) (*protos.InitEnclaveMessage, error)

func (*ExtractorImpl) GetSerializedChaincodeRequest

func (s *ExtractorImpl) GetSerializedChaincodeRequest(stub shim.ChaincodeStubInterface) ([]byte, error)

type Extractors

type Extractors interface {
	GetInitEnclaveMessage(stub shim.ChaincodeStubInterface) (*protos.InitEnclaveMessage, error)
	GetSerializedChaincodeRequest(stub shim.ChaincodeStubInterface) ([]byte, error)
	GetChaincodeResponseMessages(stub shim.ChaincodeStubInterface) (*protos.SignedChaincodeResponseMessage, *protos.ChaincodeResponseMessage, error)
	GetChaincodeParams(stub shim.ChaincodeStubInterface) (*protos.CCParameters, error)
	GetHostParams(stub shim.ChaincodeStubInterface) (*protos.HostParameters, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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