Trait encrypt38::StringManipulation[][src]

pub trait StringManipulation {
    fn decode_base58ck(&self) -> Result<Vec<u8>, Error>;
fn decode_wif(&self) -> Result<([u8; 32], bool), Error>;
fn decrypt(&self, pass: &str) -> Result<([u8; 32], bool), Error>;
fn decrypt_ec(&self, pass: &str) -> Result<([u8; 32], bool), Error>;
fn encrypt_ec(&self, compress: bool) -> Result<(String, Vec<u8>), Error>;
fn hex_bytes(&self) -> Result<Vec<u8>, Error>;
fn is_hex(&self) -> bool;
fn show_decrypt(&self, pass: &str, separator: &str) -> Result<(), Error>;
fn show_encrypt(
        &self,
        pass: &str,
        compress: bool,
        separator: &str
    ) -> Result<(), Error>; }
Expand description

Functions to manipulate strings.

Required methods

Decode informed base 58 string into bytes (payload only).

Decode a secret key encoded in base 58 returning bytes and compression.

Decrypt encrypted private key (non-ec).

Decrypt encrypted private key with ec multiply mode.

Encrypt private key based on passphrase with ec multiply.

Transform string of hexadecimal characters into a vector of bytes.

Test if an string of arbitrary length contains only hexadecimal chars.

Show decryption of target string in command line interface.

Show encryption of target string in command line interface.

Implementations on Foreign Types

Implementation of trait StringManipulation.

Implementors