# Checksum256

Represents a 256 bit checksum (32 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 32 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: Checksum160, b: Checksum160): bool

Checks that the two checksum bytes are equal

  static function neq(a: Checksum160, b: Checksum160): bool

Checks that the checksum bytes are not equal