pub struct HolderContext { /* private fields */ }Expand description
Runtime holder context containing holder identity keys.
Implementations§
Source§impl HolderContext
impl HolderContext
Sourcepub fn import_secret_key(secret_key: &str) -> Result<Self, CredentialsError>
pub fn import_secret_key(secret_key: &str) -> Result<Self, CredentialsError>
Import a holder context from a Nostr secret key string.
Sourcepub fn export_secret_key(&self) -> String
pub fn export_secret_key(&self) -> String
Export this holder’s Nostr secret key as a hex string.
Sourcepub fn public_key(&self) -> PublicKey
pub fn public_key(&self) -> PublicKey
Return this holder’s Nostr public key.
Create a signed authorization allowing an auxiliary subject key to use a credential.
The SDK derives this holder’s id and credential digest from the supplied credential before signing the canonical authorization statement. Consent UI, storage, transport, and subject-key custody remain application concerns.
Create a signed authorization using an explicit issuance timestamp.
Trait Implementations§
Source§impl Clone for HolderContext
impl Clone for HolderContext
Source§fn clone(&self) -> HolderContext
fn clone(&self) -> HolderContext
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 moreAuto Trait Implementations§
impl !Freeze for HolderContext
impl RefUnwindSafe for HolderContext
impl Send for HolderContext
impl Sync for HolderContext
impl Unpin for HolderContext
impl UnsafeUnpin for HolderContext
impl UnwindSafe for HolderContext
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