#[non_exhaustive]pub enum GhostkeyRequest {
Show 17 variants
ImportGhostKey {
certificate_pem: String,
signing_key_pem: String,
master_verifying_key_pem: Option<String>,
},
ListGhostKeys,
GetGhostKey {
fingerprint: String,
},
GetCertificate {
fingerprint: String,
},
DeleteGhostKey {
fingerprint: String,
},
SetLabel {
fingerprint: String,
label: String,
},
SignMessage {
fingerprint: String,
message: Vec<u8>,
},
SignWithDefault {
message: Vec<u8>,
},
SetDefaultKey {
fingerprint: String,
},
GetDefaultKey,
VerifySignedMessage {
signed_message: Vec<u8>,
},
ExportGhostKey {
fingerprint: String,
},
ExportAllGhostKeys,
GrantPermission {
fingerprint: String,
requestor: SignatureRequestor,
},
RevokePermission {
fingerprint: String,
requestor: SignatureRequestor,
},
ListPermissions {
fingerprint: String,
},
TestPermissionPrompt {
fingerprint: String,
},
}Expand description
Requests from UI or other delegates to the ghostkey delegate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ImportGhostKey
Import a ghostkey from PEM-armored certificate and signing key. If master_verifying_key_pem is None, uses the hardcoded Freenet master key.
ListGhostKeys
List all stored ghostkeys.
GetGhostKey
Get details for a specific ghostkey.
GetCertificate
Get just the public certificate (for sharing with counterparties).
DeleteGhostKey
Delete a stored ghostkey.
SetLabel
Set a user-friendly label.
SignMessage
Sign a message with a specific ghostkey. The delegate scopes the signature to the requestor.
SignWithDefault
Sign a message with the user’s default ghostkey (highest-tier key, or user-overridden via SetDefaultKey). Apps should prefer this over SignMessage – it avoids needing to know about specific fingerprints.
SetDefaultKey
Set which ghostkey is the default for signing.
GetDefaultKey
Get the current default ghostkey fingerprint.
VerifySignedMessage
Verify a signed message produced by this delegate.
ExportGhostKey
Export a ghostkey’s certificate and signing key for backup. Security-sensitive: returns the private signing key.
ExportAllGhostKeys
Export all ghostkeys for backup.
GrantPermission
Grant an application or delegate permission to use a ghostkey.
RevokePermission
Revoke a previously granted permission.
ListPermissions
List permissions for a ghostkey.
TestPermissionPrompt
Debug: force a permission prompt regardless of existing permissions.
Trait Implementations§
Source§impl Clone for GhostkeyRequest
impl Clone for GhostkeyRequest
Source§fn clone(&self) -> GhostkeyRequest
fn clone(&self) -> GhostkeyRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more