confidentialrelay

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodSecretsGet     = "confidential.secrets.get"
	MethodCapabilityExec = "confidential.capability.execute"

	DomainSecretsGet     = "ConfidentialSecretsGet"
	DomainCapabilityExec = "ConfidentialCapabilityExecute"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CapabilityRequestParams

type CapabilityRequestParams struct {
	WorkflowID   string `json:"workflow_id"`
	CapabilityID string `json:"capability_id"`
	Payload      string `json:"payload"`
	Attestation  string `json:"attestation,omitempty"`
}

CapabilityRequestParams is the JSON-RPC params for "confidential.capability.execute".

type CapabilityResponseResult

type CapabilityResponseResult struct {
	Payload string `json:"payload,omitempty"`
	Error   string `json:"error,omitempty"`
}

CapabilityResponseResult is the JSON-RPC result for "confidential.capability.execute".

type SecretEntry

type SecretEntry struct {
	ID              SecretIdentifier `json:"id"`
	Ciphertext      string           `json:"ciphertext"`
	EncryptedShares []string         `json:"encrypted_shares"`
}

SecretEntry is a single secret in the relay DON's response.

type SecretIdentifier

type SecretIdentifier struct {
	Key       string `json:"key"`
	Namespace string `json:"namespace"`
}

SecretIdentifier identifies a secret by key and namespace.

type SecretsRequestParams

type SecretsRequestParams struct {
	WorkflowID       string             `json:"workflow_id"`
	Secrets          []SecretIdentifier `json:"secrets"`
	EnclavePublicKey string             `json:"enclave_public_key"`
	Attestation      string             `json:"attestation,omitempty"`
}

SecretsRequestParams is the JSON-RPC params for "confidential.secrets.get".

type SecretsResponseResult

type SecretsResponseResult struct {
	Secrets         []SecretEntry `json:"secrets"`
	MasterPublicKey string        `json:"master_public_key"`
	Threshold       int           `json:"threshold"`
}

SecretsResponseResult is the JSON-RPC result for "confidential.secrets.get".

Jump to

Keyboard shortcuts

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