pub struct NostrKeyGenerator { /* private fields */ }Implementations§
Source§impl NostrKeyGenerator
impl NostrKeyGenerator
pub fn new(thread_count: u32) -> Self
pub fn thread_count(&self) -> u32
pub fn generate_key() -> KeyPair
pub fn to_npub(pubkey: &XOnlyPublicKey) -> String
pub fn to_nsec(keypair: &KeyPair) -> String
pub fn find_vanity_key( &self, primary_prefix: &str, additional_prefixes: Option<&[String]>, ) -> (String, String)
Auto Trait Implementations§
impl Freeze for NostrKeyGenerator
impl RefUnwindSafe for NostrKeyGenerator
impl Send for NostrKeyGenerator
impl Sync for NostrKeyGenerator
impl Unpin for NostrKeyGenerator
impl UnwindSafe for NostrKeyGenerator
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