Struct cardano_multiplatform_lib::chain_crypto::algorithms::legacy_daedalus::LegacyDaedalus
source · [−]pub struct LegacyDaedalus;
Expand description
Legacy Daedalus algorithm
Trait Implementations
sourceimpl AsymmetricKey for LegacyDaedalus
impl AsymmetricKey for LegacyDaedalus
type Secret = LegacyPriv
type PubAlg = LegacyDaedalus
const SECRET_BECH32_HRP: &'static str = "legacy_xprv"
fn generate<T: RngCore + CryptoRng>(rng: T) -> Self::Secret
fn compute_public(key: &Self::Secret) -> <Self as AsymmetricPublicKey>::Public
fn secret_from_binary(data: &[u8]) -> Result<Self::Secret, SecretKeyError>
sourceimpl AsymmetricPublicKey for LegacyDaedalus
impl AsymmetricPublicKey for LegacyDaedalus
type Public = XPub
const PUBLIC_BECH32_HRP: &'static str = "legacy_xpub"
const PUBLIC_KEY_SIZE: usize = 64usize
fn public_from_binary(data: &[u8]) -> Result<Self::Public, PublicKeyError>
sourceimpl SecretKeySizeStatic for LegacyDaedalus
impl SecretKeySizeStatic for LegacyDaedalus
const SECRET_KEY_SIZE: usize = 96usize
sourceimpl SigningAlgorithm for LegacyDaedalus
impl SigningAlgorithm for LegacyDaedalus
sourceimpl VerificationAlgorithm for LegacyDaedalus
impl VerificationAlgorithm for LegacyDaedalus
type Signature = Signature<u8>
const SIGNATURE_SIZE: usize = 64usize
const SIGNATURE_BECH32_HRP: &'static str = "legacy_xsig"
fn signature_from_bytes(data: &[u8]) -> Result<Self::Signature, SignatureError>
fn verify_bytes(
pubkey: &Self::Public,
signature: &Self::Signature,
msg: &[u8]
) -> Verification
Auto Trait Implementations
impl RefUnwindSafe for LegacyDaedalus
impl Send for LegacyDaedalus
impl Sync for LegacyDaedalus
impl Unpin for LegacyDaedalus
impl UnwindSafe for LegacyDaedalus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more