api

package
v0.2400.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package api defines the key manager client API.

Index

Constants

View Source
const EnclaveRPCEndpoint = "key-manager"

EnclaveRPCEndpoint is the name of the key manager EnclaveRPC endpoint.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// CallEnclave calls the key manager via remote EnclaveRPC.
	//
	// The node to which the call will be routed is chosen at random from the key manager committee
	// members. The latter can be restricted by specifying a non-empty list of allowed nodes.
	//
	// The provided peer feedback is optional feedback on the peer that handled the last EnclaveRPC
	// request (if any) which may be used to inform the routing decision.
	CallEnclave(ctx context.Context, data []byte, nodes []signature.PublicKey, kind enclaverpc.Kind, pf *enclaverpc.PeerFeedback) ([]byte, signature.PublicKey, error)
}

Client is the key manager client interface.

Jump to

Keyboard shortcuts

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