Function calculate_checksum
Source pub fn calculate_checksum(input: &[u8]) -> [u8; 4]
Expand description
Calculates the checksum of a byte slice.
§Arguments
input
- A byte slice to calculate the checksum for.
§Example
use neo3::neo_crypto::calculate_checksum;
let bytes = [0x01, 0x02, 0x03];
let checksum = calculate_checksum(&bytes);