MemoHash

constructor(bytes: ByteArray)

Creates a MEMO_HASH from a byte array.

Parameters

bytes

The 32-byte hash

Throws

if bytes is not exactly 32 bytes


constructor(hexString: String)

Creates a MEMO_HASH from a hex-encoded string.

Parameters

hexString

The 64-character hex string (case-insensitive)

Throws

if the hex string is invalid or doesn't decode to 32 bytes