# Checksum512

Represents a 512 bit checksum (64 bytes)

# Constructor

  • constructor(
      data: u8[] | null = null
    )
    

    data - byte array for initial value of checksum

# Fields

  • var data: u8[] = undefined;
    
    The bytes in the checksum

# 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