pub fn new(filter_hash: FilterHash, prev_header: &FilterHeader) -> Self {
        use bitcoin_hashes::Hash;

        let mut header_bytes = [0u8; 64];

        header_bytes[0..32].copy_from_slice(&filter_hash[..]);
        header_bytes[32..64].copy_from_slice(&prev_header.as_ref()[..]);

        Self {
            hash: FilterHash::hash(&header_bytes),
        }
    }
/// Create a new filter header from the filter hash and the previous header.
///
/// *BIP 157: The canonical hash of a block filter is the double-SHA256 of the serialized
/// filter.  Filter headers are 32-byte hashes derived for each block filter. They are computed
/// as the double-SHA256 of the concatenation of the filter hash with the previous filter
/// header.*
///
Create a new filter header from the filter hash and the previous header.
BIP 157: The canonical hash of a block filter is the double-SHA256 of the serialized
filter.  Filter headers are 32-byte hashes derived for each block filter. They are computed
as the double-SHA256 of the concatenation of the filter hash with the previous filter
header.
Create a new filter header from the filter hash and the previous header . BIP 157 : The canonical hash of a block filter is the double - SHA256 of the serialized filter . Filter headers are 32 - byte hashes derived for each block filter . They are computed as the double - SHA256 of the concatenation of the filter hash with the previous filter header .
pub fn new(filter_hash: FilterHash, prev_header: &FilterHeader) -> Self {
        use bitcoin_hashes::Hash;
        let mut header_bytes = [0u8; 64];
        header_bytes[0..32].copy_from_slice(&filter_hash[..]);
        header_bytes[32..64].copy_from_slice(&prev_header.as_ref()[..]);
        Self {
            hash: FilterHash::hash(&header_bytes),
        }
    }
pub fn new ( filter_hash : FilterHash , prev_header : & FilterHeader ) -> Self { use bitcoin_hashes :: Hash ; let mut header_bytes = [ 0u8 ; 64 ] ; header_bytes [ 0 .. 32 ] . copy_from_slice ( & filter_hash [ .. ] ) ; header_bytes [ 32 .. 64 ] . copy_from_slice ( & prev_header . as_ref ( ) [ .. ] ) ; Self { hash : FilterHash :: hash ( & header_bytes ) , } }
Create a new filter header from the filter hash and the previous header.
Create a new filter header from the filter hash and the previous header .
filter_hash
FilterHash
prev_header
&FilterHeader