Struct bitcoin::util::bip158::BlockFilterWriter [−][src]
pub struct BlockFilterWriter<'a> { /* fields omitted */ }
Compiles and writes a block filter
Implementations
impl<'a> BlockFilterWriter<'a>
[src]
impl<'a> BlockFilterWriter<'a>
[src]pub fn new(writer: &'a mut dyn Write, block: &'a Block) -> BlockFilterWriter<'a>
[src]
Create a block filter writer
pub fn add_output_scripts(&mut self)
[src]
Add output scripts of the block - excluding OP_RETURN scripts
pub fn add_input_scripts<M>(&mut self, script_for_coin: M) -> Result<(), Error> where
M: Fn(&OutPoint) -> Result<Script, Error>,
[src]
M: Fn(&OutPoint) -> Result<Script, Error>,
Add consumed output scripts of a block to filter
pub fn add_element(&mut self, data: &[u8])
[src]
Add arbitrary element to a filter
pub fn finish(&mut self) -> Result<usize, Error>
[src]
Write block filter