Documentation
¶
Index ¶
- type EnclaveStub
- func (e *EnclaveStub) ChaincodeInvoke(stub shim.ChaincodeStubInterface, crmProtoBytes []byte) ([]byte, error)
- func (e *EnclaveStub) ExportCCKeys(credentials []byte) ([]byte, error)
- func (e *EnclaveStub) GenerateCCKeys() ([]byte, error)
- func (e *EnclaveStub) GetEnclaveId() (string, error)
- func (e *EnclaveStub) ImportCCKeys() ([]byte, error)
- func (e *EnclaveStub) Init(chaincodeParams, hostParams, attestationParams []byte) ([]byte, error)
- type Stubs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnclaveStub ¶
type EnclaveStub struct {
// contains filtered or unexported fields
}
EnclaveStub translates invocations into an enclave using cgo
func NewEnclaveStub ¶
func NewEnclaveStub() *EnclaveStub
func (*EnclaveStub) ChaincodeInvoke ¶
func (e *EnclaveStub) ChaincodeInvoke(stub shim.ChaincodeStubInterface, crmProtoBytes []byte) ([]byte, error)
ChaincodeInvoke calls the enclave for transaction processing
func (*EnclaveStub) ExportCCKeys ¶
func (e *EnclaveStub) ExportCCKeys(credentials []byte) ([]byte, error)
func (*EnclaveStub) GenerateCCKeys ¶
func (e *EnclaveStub) GenerateCCKeys() ([]byte, error)
func (*EnclaveStub) GetEnclaveId ¶
func (e *EnclaveStub) GetEnclaveId() (string, error)
func (*EnclaveStub) ImportCCKeys ¶
func (e *EnclaveStub) ImportCCKeys() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.