MemoHashAbstract constructor

MemoHashAbstract(
  1. Uint8List bytes
)

Implementation

MemoHashAbstract(Uint8List bytes) {
  if (bytes.length < 32) {
    bytes = Util.paddedByteArray(bytes, 32);
  } else if (bytes.length > 32) {
    throw MemoTooLongException("MEMO_HASH can contain 32 bytes at max.");
  }

  this._bytes = bytes;
}