wagyu-model 0.6.3

A generic model for cryptocurrency wallets
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::{fmt::Debug, hash::Hash};

/// The interface for a generic network.
pub trait Wordlist: Copy + Clone + Debug + Send + Sync + 'static + Eq + Ord + Sized + Hash {}

#[derive(Debug, Fail)]
pub enum WordlistError {
    #[fail(display = "invalid index: {}", _0)]
    InvalidIndex(usize),

    #[fail(display = "invalid word: {}", _0)]
    InvalidWord(String),
}