Hash256

Hash256

Represents a 256-bit hash.

Constructor

new Hash256(hash256)

Description:
  • Creates a hash from bytes or a hex string.

Source:
Parameters:
Name Type Description
hash256 Uint8Array | string

Input string or byte array.

Classes

Hash256

Members

NAME :string

Description:
  • Byte array name (required because constructor.name is dropped during minification).

Source:

Byte array name (required because constructor.name is dropped during minification).

Type:
  • string

SIZE :number

Description:
  • Byte size of raw hash.

Source:

Byte size of raw hash.

Type:
  • number

Methods

(static) zero() → {Hash256}

Description:
  • Creates a zeroed hash.

Source:
Returns:

Zeroed hash.

Type
Hash256