Struct bitcoin::util::bip158::BlockFilter
source · Expand description
a computed or read block filter
Fields
content: Vec<u8>
Golomb encoded filter
Implementations
sourceimpl BlockFilter
impl BlockFilter
sourcepub fn filter_header(
&self,
previous_filter_header: &FilterHeader
) -> FilterHeader
pub fn filter_header(
&self,
previous_filter_header: &FilterHeader
) -> FilterHeader
compute this filter’s id in a chain of filters
sourcepub fn new(content: &[u8]) -> BlockFilter
pub fn new(content: &[u8]) -> BlockFilter
create a new filter from pre-computed data
sourcepub fn new_script_filter<M>(
block: &Block,
script_for_coin: M
) -> Result<BlockFilter, Error>where
M: Fn(&OutPoint) -> Result<Script, Error>,
pub fn new_script_filter<M>(
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
Trait Implementations
sourceimpl Clone for BlockFilter
impl Clone for BlockFilter
sourcefn clone(&self) -> BlockFilter
fn clone(&self) -> BlockFilter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BlockFilter
impl Debug for BlockFilter
sourceimpl PartialEq<BlockFilter> for BlockFilter
impl PartialEq<BlockFilter> for BlockFilter
sourcefn eq(&self, other: &BlockFilter) -> bool
fn eq(&self, other: &BlockFilter) -> bool
impl Eq for BlockFilter
impl StructuralEq for BlockFilter
impl StructuralPartialEq for BlockFilter
Auto Trait Implementations
impl RefUnwindSafe for BlockFilter
impl Send for BlockFilter
impl Sync for BlockFilter
impl Unpin for BlockFilter
impl UnwindSafe for BlockFilter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more