Documentation ¶
Index ¶
Constants ¶
View Source
const ( MethodCallEnclave = "CallEnclave" MaxCallEnclaveRetries = 15 )
Constants related to the GetDiff method.
View Source
const KeyManagerProtocolID = "keymanager"
KeyManagerProtocolID is a unique protocol identifier for the keymanager protocol.
Variables ¶
View Source
var KeyManagerProtocolVersion = version.Version{Major: 2, Minor: 0, Patch: 0}
KeyManagerProtocolVersion is the supported version of the keymanager protocol.
Functions ¶
Types ¶
type CallEnclaveRequest ¶
type CallEnclaveRequest struct { Data []byte `json:"data"` Kind enclaverpc.Kind `json:"kind,omitempty"` }
CallEnclaveRequest is a CallEnclave request.
type CallEnclaveResponse ¶
type CallEnclaveResponse struct {
Data []byte `json:"data"`
}
CallEnclaveResponse is a response to a CallEnclave request.
type Client ¶
type Client interface { // CallEnclave calls a key manager enclave with the provided data. // // The peer to which the call will be routed is chosen at random from the given list. CallEnclave(ctx context.Context, request *CallEnclaveRequest, peers []core.PeerID) (*CallEnclaveResponse, rpc.PeerFeedback, error) }
Client is a keymanager protocol client.
type KeyManager ¶
type KeyManager interface { // CallEnclave calls the keymanager enclave with the provided data. CallEnclave(ctx context.Context, data []byte, kind enclaverpc.Kind) ([]byte, error) }
KeyManager is the keymanager service interface.
Click to show internal directories.
Click to hide internal directories.