Struct bitcoin::util::bip158::BlockFilter [−][src]
a computed or read block filter
Fields
content: Vec<u8>
Golomb encoded filter
Implementations
impl BlockFilter
[src]
impl BlockFilter
[src]pub fn filter_header(
&self,
previous_filter_header: &FilterHeader
) -> FilterHeader
[src]
&self,
previous_filter_header: &FilterHeader
) -> FilterHeader
compute this filter’s id in a chain of filters
pub fn new(content: &[u8]) -> BlockFilter
[src]
create a new filter from pre-computed data
pub fn new_script_filter<M>(
block: &Block,
script_for_coin: M
) -> Result<BlockFilter, Error> where
M: Fn(&OutPoint) -> Result<Script, Error>,
[src]
block: &Block,
script_for_coin: M
) -> Result<BlockFilter, Error> where
M: Fn(&OutPoint) -> Result<Script, Error>,
Compute a SCRIPT_FILTER that contains spent and output scripts
pub fn match_any(
&self,
block_hash: &BlockHash,
query: &mut dyn Iterator<Item = &[u8]>
) -> Result<bool, Error>
[src]
&self,
block_hash: &BlockHash,
query: &mut dyn Iterator<Item = &[u8]>
) -> Result<bool, Error>
match any query pattern
pub fn match_all(
&self,
block_hash: &BlockHash,
query: &mut dyn Iterator<Item = &[u8]>
) -> Result<bool, Error>
[src]
&self,
block_hash: &BlockHash,
query: &mut dyn Iterator<Item = &[u8]>
) -> Result<bool, Error>
match all query pattern
Trait Implementations
impl Clone for BlockFilter
[src]
impl Clone for BlockFilter
[src]fn clone(&self) -> BlockFilter
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<BlockFilter> for BlockFilter
[src]
impl PartialEq<BlockFilter> for BlockFilter
[src]