[][src]Trait bitcoin_cash::Hashed

pub trait Hashed: Display + Debug + Sized + Eq + PartialEq {
    fn as_slice(&self) -> &[u8]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
;
fn from_slice(hash: &[u8]) -> Result<Self>;
fn from_byte_array(hash: ByteArray) -> Result<Self>;
fn function() -> Function;
fn digest_slice(msg: &[u8]) -> Arc<[u8]>;
fn named(self, name: impl Into<Cow<'static, str>>) -> Self;
fn as_byte_array(&self) -> &ByteArray;
fn into_byte_array(self) -> ByteArray; fn digest(msg: impl Into<ByteArray>) -> Self { ... }
fn from_hex_le(s: &str) -> Result<Self> { ... }
fn from_hex_be(s: &str) -> Result<Self> { ... }
fn from_slice_le(hash_le: &[u8]) -> Result<Self> { ... }
fn to_vec_le(&self) -> Vec<u8> { ... }
fn to_hex_le(&self) -> String { ... }
fn to_hex_be(&self) -> String { ... }
fn concat(self, other: impl Into<ByteArray>) -> ByteArray { ... } }

Required methods

fn as_slice(&self) -> &[u8]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]

fn from_slice(hash: &[u8]) -> Result<Self>

fn from_byte_array(hash: ByteArray) -> Result<Self>

fn function() -> Function

fn digest_slice(msg: &[u8]) -> Arc<[u8]>

fn named(self, name: impl Into<Cow<'static, str>>) -> Self

fn as_byte_array(&self) -> &ByteArray

fn into_byte_array(self) -> ByteArray

Loading content...

Provided methods

fn digest(msg: impl Into<ByteArray>) -> Self

fn from_hex_le(s: &str) -> Result<Self>

fn from_hex_be(s: &str) -> Result<Self>

fn from_slice_le(hash_le: &[u8]) -> Result<Self>

fn to_vec_le(&self) -> Vec<u8>

fn to_hex_le(&self) -> String

fn to_hex_be(&self) -> String

fn concat(self, other: impl Into<ByteArray>) -> ByteArray

Loading content...

Implementors

impl Hashed for Hash160[src]

impl Hashed for Ripemd160[src]

impl Hashed for Sha1[src]

impl Hashed for Sha256[src]

impl Hashed for Sha256d[src]

Loading content...