Struct chain_crypto::algorithms::Ed25519Bip32
source · pub struct Ed25519Bip32;
Expand description
Ed25519 BIP32 Signature algorithm
Trait Implementations§
source§impl AsymmetricKey for Ed25519Bip32
impl AsymmetricKey for Ed25519Bip32
type Secret = XPrv
type PubAlg = Ed25519Bip32
const SECRET_BECH32_HRP: &'static str = "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>
source§impl AsymmetricPublicKey for Ed25519Bip32
impl AsymmetricPublicKey for Ed25519Bip32
type Public = XPub
const PUBLIC_BECH32_HRP: &'static str = "xpub"
const PUBLIC_KEY_SIZE: usize = 64usize
fn public_from_binary(data: &[u8]) -> Result<Self::Public, PublicKeyError>
source§impl SecretKeySizeStatic for Ed25519Bip32
impl SecretKeySizeStatic for Ed25519Bip32
const SECRET_KEY_SIZE: usize = 96usize
source§impl SigningAlgorithm for Ed25519Bip32
impl SigningAlgorithm for Ed25519Bip32
source§impl VerificationAlgorithm for Ed25519Bip32
impl VerificationAlgorithm for Ed25519Bip32
type Signature = Signature<u8>
const SIGNATURE_SIZE: usize = 64usize
const SIGNATURE_BECH32_HRP: &'static str = "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 Ed25519Bip32
impl Send for Ed25519Bip32
impl Sync for Ed25519Bip32
impl Unpin for Ed25519Bip32
impl UnwindSafe for Ed25519Bip32
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