bitcoin-blockfilter 0.1.16-alpha.0

blockfilter struct as defined in BIP 157
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
crate::ix!();

pub const BASIC_FILTER_P: u8 = 19;
pub const BASIC_FILTER_M: u32 = 784931;

lazy_static!{

    pub static ref G_FILTER_TYPES: HashMap<BlockFilterType, String> = {

        let mut x = HashMap::<BlockFilterType, String>::new();

        x.insert(BlockFilterType::BASIC, "basic".to_string());

        x
    };
}