pub enum SsiSecret {
Bip340(Fingerprint, Bip340Secret),
Ed25519(Fingerprint, Ed25519Secret),
}Variants§
Bip340(Fingerprint, Bip340Secret)
Ed25519(Fingerprint, Ed25519Secret)
Implementations§
Source§impl SsiSecret
impl SsiSecret
pub fn new(algo: Algo, chain: Chain) -> Self
pub fn new_ed25519(chain: Chain) -> Self
pub fn new_bip340(chain: Chain) -> Self
pub fn vanity(prefix: &str, algo: Algo, chain: Chain, threads: u8) -> Self
pub fn algorithm(&self) -> Algo
pub fn fingerprint(&self) -> Fingerprint
pub fn to_public(&self) -> SsiPub
pub fn sign(&self, msg: [u8; 32]) -> SsiSig
pub fn encrypt(&mut self, passwd: impl AsRef<str>)
pub fn decrypt(&mut self, passwd: impl AsRef<str>)
pub fn to_vec(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Ord for SsiSecret
impl Ord for SsiSecret
Source§impl PartialOrd for SsiSecret
impl PartialOrd for SsiSecret
impl Eq for SsiSecret
impl StructuralPartialEq for SsiSecret
Auto Trait Implementations§
impl Freeze for SsiSecret
impl RefUnwindSafe for SsiSecret
impl Send for SsiSecret
impl Sync for SsiSecret
impl Unpin for SsiSecret
impl UnwindSafe for SsiSecret
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