Docs.rs
  • cardano-multiplatform-lib-0.1.0
    • cardano-multiplatform-lib 0.1.0
    • Docs.rs crate page
    • MIT
    • Links
    • Documentation
    • Repository
    • crates.io
    • Source
    • Owners
    • SebastienGllmt
    • Dependencies
      • bech32 ^0.7.2 normal
      • cbor_event ^2.1.3 normal
      • cfg-if ^1 normal
      • clear_on_drop ^0.2 normal
      • cryptoxide ^0.4.2 normal
      • digest ^0.9 normal
      • ed25519-bip32 ^0.4.1 normal
      • getrandom ^0.2.3 normal
      • hex ^0.4.0 normal
      • itertools ^0.10.1 normal
      • linked-hash-map ^0.5.3 normal
      • num-bigint ^0.4.0 normal
      • rand ^0.8.4 normal
      • schemars ^0.8.8 normal
      • serde ^1.0 normal
      • serde_json ^1.0.57 normal
      • sha2 ^0.9 normal
      • quickcheck ^0.9.2 dev
      • quickcheck_macros ^0.9.1 dev
      • rand_chacha ^0.1 dev
      • rand_os ^0.1 dev
      • js-sys =0.3.51 normal
      • rand_os ^0.1 normal
      • wasm-bindgen =0.2.78 normal
      • noop_proc_macro ^0.3.0 normal
      • rand_os ^0.1 normal
    • Versions
    • 10.1% of the crate is documented
  • Go to latest version
  • Platform
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

AsymmetricPublicKey

Associated Types

  • Public

Associated Constants

  • PUBLIC_BECH32_HRP
  • PUBLIC_KEY_SIZE

Required Methods

  • public_from_binary

Implementors

In cardano_multiplatform_lib::chain_crypto

logo
Change settings

Trait cardano_multiplatform_lib::chain_crypto::AsymmetricPublicKey

source · [−]
pub trait AsymmetricPublicKey {
    type Public: AsRef<[u8]> + Clone + PartialEq + Eq + Hash;

    const PUBLIC_BECH32_HRP: &'static str;
    const PUBLIC_KEY_SIZE: usize;

    fn public_from_binary(data: &[u8]) -> Result<Self::Public, PublicKeyError>;
}

Associated Types

source

type Public: AsRef<[u8]> + Clone + PartialEq + Eq + Hash

Associated Constants

source

const PUBLIC_BECH32_HRP: &'static str

source

const PUBLIC_KEY_SIZE: usize

Required methods

source

fn public_from_binary(data: &[u8]) -> Result<Self::Public, PublicKeyError>

Implementors

source

impl AsymmetricPublicKey for Ed25519

type Public = Pub

source

const PUBLIC_BECH32_HRP: &'static str

source

const PUBLIC_KEY_SIZE: usize

source

impl AsymmetricPublicKey for Ed25519Bip32

type Public = XPub

source

const PUBLIC_BECH32_HRP: &'static str

source

const PUBLIC_KEY_SIZE: usize

source

impl AsymmetricPublicKey for LegacyDaedalus

type Public = XPub

source

const PUBLIC_BECH32_HRP: &'static str

source

const PUBLIC_KEY_SIZE: usize