'use strict';

var types_generic_typedBytes = require('./typed-bytes.cjs');
require('../../utils/types/bytes.cjs');
require('crypto');
require('../../utils/interfaces.cjs');
require('../../utils/assert.cjs');
require('../../utils/error.cjs');
require('../../utils/types/string.cjs');
require('../../utils/types/iterable.cjs');
require('../../utils/types/object.cjs');
require('../../utils/inheritance.cjs');
require('../../utils/types/set.cjs');
require('../../utils/types/array.cjs');
require('bs58');
require('multiformats/bases/base58');
require('varint');
require('../../utils/encoding/ss-58.cjs');
require('blake2b');
require('./with-base.cjs');
require('./with-catch-null.cjs');
require('./with-eq.cjs');
require('./any-of.cjs');
require('./with-from.cjs');
require('./with-from-json-bytes.cjs');

/**
 * Same as `TypedBytes` but will be converted to `Array` during JSON serialization instead of hex.
 */
class TypedBytesArray extends types_generic_typedBytes {
  get value() {
    return this.bytes;
  }

  toJSON() {
    return Array.from(this);
  }

  toCheqdPayload() {
    return this.value;
  }
}

module.exports = TypedBytesArray;
//# sourceMappingURL=typed-bytes-array.cjs.map
