pub fn new(slice: &'a [u8]) -> Result<HeaderArray<'a>, SPVError> {
        if slice.len() % 80 == 0 {
            Ok(Self(slice))
        } else {
            Err(SPVError::WrongLengthHeader)
        }
    }
/// Return a new merkle array from a slice
Return a new merkle array from a slice
Return a new merkle array from a slice
pub fn new(slice: &'a [u8]) -> Result<HeaderArray<'a>, SPVError> {
        if slice.len() % 80 == 0 {
            Ok(Self(slice))
        } else {
            Err(SPVError::WrongLengthHeader)
        }
    }
pub fn new ( slice : & ' a [ u8 ] ) -> Result < HeaderArray < ' a > , SPVError > { if slice . len ( ) % 80 == 0 { Ok ( Self ( slice ) ) } else { Err ( SPVError :: WrongLengthHeader ) } }
Return a new merkle array from a slice
Return a new merkle array from a slice
slice
&'a [u8]
slice
&'a [u8]