Trait encrypt38::BytesManipulation[][src]

pub trait BytesManipulation {
    fn encode_base58ck(&self) -> String;
fn hash160(&self) -> [u8; 20];
fn hash256(&self) -> [u8; 32];
fn hex_string(&self) -> String;
fn p2wpkh(&self) -> Result<String, Error>; }
Expand description

Functions to manipulate data in form of arbitrary number of bytes u8.

Required methods

Encode informed data in base 58 check.

Sha256 and ripemd160 in sequence.

Receives a string and return 32 bytes of a dual sha256 hash.

Receives bytes and return string of hexadecimal characters.

Create an p2wpkh address according to inserted self key bytes.

Implementations on Foreign Types

Implementation of trait BytesManipulation.

Implementors