pub struct NefParser;Expand description
Parser for Neo N3 NEF containers.
This type is stateless and can be reused across many parse calls.
Implementations§
Source§impl NefParser
impl NefParser
Sourcepub fn calculate_checksum(payload: &[u8]) -> u32
pub fn calculate_checksum(payload: &[u8]) -> u32
Calculate the NEF checksum over the payload bytes.
This implements the double-SHA256 checksum used by the NEF container and
returns the first 4 bytes of the resulting digest as a little-endian
u32.
Trait Implementations§
impl Copy for NefParser
Auto Trait Implementations§
impl Freeze for NefParser
impl RefUnwindSafe for NefParser
impl Send for NefParser
impl Sync for NefParser
impl Unpin for NefParser
impl UnsafeUnpin for NefParser
impl UnwindSafe for NefParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more