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"`
}
SecretEntry is a single secret in the relay DON's response.
type SecretIdentifier ¶
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.
Click to show internal directories.
Click to hide internal directories.