enclave

package
v1.0.0-rc3.0...-059df17 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

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)

func (*EnclaveStub) Init

func (e *EnclaveStub) Init(chaincodeParams, hostParams, attestationParams []byte) ([]byte, error)

type Stubs

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

Stubs is a container struct used for the callbacks

Jump to

Keyboard shortcuts

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