feeless 0.1.11

A Nano (cryptocurrency) node and utilities such as nano addresses, hashing blocks, signing, etc.
Documentation
use thiserror::Error;

#[derive(Debug, Error)]
pub enum FeelessError {
    #[error("From hex error")]
    FromHexError {
        msg: String,
        source: hex::FromHexError,
    },  
    #[error("Signature error")]
    SignatureError {
        msg: String,
        source: ed25519_dalek::SignatureError,
    },
    #[error("Try from slice error")]
    TryFromSliceError(#[from] std::array::TryFromSliceError),
    #[error("There is only one private key in this wallet. Only use index 0.")]
    WalletError,
    #[error("Invalid Nano address")]
    InvalidAddress,
    #[error("Unknown character found while decoding: {0}")]
    DecodingError(char),
    #[error("Invalid checksum")]
    InvalidChecksum,
    #[error("Bad public key, can not verify")]
    BadPublicKey,
    #[error("Extended secret key error")]
    ExtendedSecretKeyError(#[from] ed25519_dalek_bip32::Error),
    #[error("Mnemonic error")]
    MnemonicError(#[from] bip39::ErrorKind),
    #[error("Wrong length (expected {expected:?}, found {found:?})")]
    WrongLength {
        msg: String,
        expected: usize,
        found: usize,
    }, 
    #[error("Parse int error")]
    ParseIntError(#[from] std::num::ParseIntError),
    #[error("Parse big decimal error")]
    ParseBigDecimalError(#[from] bigdecimal::ParseBigDecimalError), 
    #[error("Possible language codes are {0}")]
    LanguageError(String),
}