confidentialrelay

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 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"`
	Owner            string             `json:"owner"`        // Ethereum address (hex, 0x-prefixed)
	ExecutionID      string             `json:"execution_id"` // 32 bytes, hex-encoded
	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"`
}

SecretsResponseResult is the JSON-RPC result for "confidential.secrets.get". The enclave uses its own config for MasterPublicKey and threshold (config.T), so the relay handler only returns the encrypted shares per secret.

Jump to

Keyboard shortcuts

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