# Checksum512
Represents a 512 bit checksum (64 bytes)
# Constructor
- Creates an empty checksum, data is added through
constructor()
unpack
function.
# Fields
- The bytes in the checksum
var data: u8[] = undefined;
# Instance Methods
static function pack(): u8[]
Returns serialized data bytes in the checksum
static function unpack(data: u8[]): usize
Tries to place the first 64 bytes from
data
into the checksum. Returns how many bytes were unpacked from data.static function toString(): string
Prints the hex representation of the bytes in the checksum
# Static Equality methods
static function eq(a: Checksum512, b: Checksum512): bool
Checks that the two checksum bytes are equal
static function neq(a: Checksum512, b: Checksum512): bool
Checks that the checksum bytes are not equal
← Checksum256 Examples →