electrs 0.12.0

An efficient re-implementation of Electrum Server in Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::bitcoin::hashes::{hash_newtype, sha256};

hash_newtype! {
    /// https://electrum-protocol.readthedocs.io/en/latest/protocol-basics.html#status
    pub struct StatusHash(sha256::Hash);
}

/// The different authentication methods for the client.
#[derive(Clone, Debug, Hash, Eq, PartialEq, Ord, PartialOrd)]
pub enum Auth {
    UserPass(String, String),
    CookieFile(std::path::PathBuf),
}