pub enum GhostkeyRequest {
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>,
},
VerifySignedMessage {
signed_message: Vec<u8>,
},
GrantPermission {
fingerprint: String,
requestor: SignatureRequestor,
},
RevokePermission {
fingerprint: String,
requestor: SignatureRequestor,
},
ListPermissions {
fingerprint: String,
},
}Expand description
Requests from UI or other delegates to the ghostkey delegate.
Variants§
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. The delegate scopes the signature to the requestor. Returns a ScopedPayload signature, not a raw signature.
VerifySignedMessage
Verify a signed message produced by this delegate.
GrantPermission
Grant an application or delegate permission to use a ghostkey.
RevokePermission
Revoke a previously granted permission.
ListPermissions
List permissions for a ghostkey.
Trait Implementations§
Source§impl Clone for GhostkeyRequest
impl Clone for GhostkeyRequest
Source§fn clone(&self) -> GhostkeyRequest
fn clone(&self) -> GhostkeyRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GhostkeyRequest
impl Debug for GhostkeyRequest
Source§impl<'de> Deserialize<'de> for GhostkeyRequest
impl<'de> Deserialize<'de> for GhostkeyRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GhostkeyRequest
impl RefUnwindSafe for GhostkeyRequest
impl Send for GhostkeyRequest
impl Sync for GhostkeyRequest
impl Unpin for GhostkeyRequest
impl UnsafeUnpin for GhostkeyRequest
impl UnwindSafe for GhostkeyRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more