pub struct DualKeypair {
pub dilithium_pk: PublicKey,
pub dilithium_sk: PrivateKey,
pub kyber_ek: EncapsKey,
pub kyber_dk: DecapsKey,
pub mnemonic: String,
}Fields§
§dilithium_pk: PublicKey§dilithium_sk: PrivateKey§kyber_ek: EncapsKey§kyber_dk: DecapsKey§mnemonic: StringImplementations§
Source§impl DualKeypair
impl DualKeypair
pub fn generate() -> Self
pub fn from_mnemonic(mnemonic: String) -> Self
pub fn from_mnemonic_with_passphrase(mnemonic: String, passphrase: &str) -> Self
pub fn save_with_password<P: AsRef<Path>>( &self, path: P, password: Option<&str>, ) -> Result<(), String>
pub fn load_with_password<P: AsRef<Path>>( path: P, password: Option<&str>, ) -> Result<Self, String>
pub fn load<P: AsRef<Path>>(path: P) -> Result<Self, String>
pub fn sign_transaction(&self, tx: &Transaction) -> Result<Transaction, String>
Trait Implementations§
Source§impl Clone for DualKeypair
impl Clone for DualKeypair
Source§fn clone(&self) -> DualKeypair
fn clone(&self) -> DualKeypair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DualKeypair
impl RefUnwindSafe for DualKeypair
impl Send for DualKeypair
impl Sync for DualKeypair
impl Unpin for DualKeypair
impl UnsafeUnpin for DualKeypair
impl UnwindSafe for DualKeypair
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