@xo-cash/utils
    Preparing search index...

    Function convertValueToBytes

    • Converts a value into bytes representation.

      Parameters

      • value: unknown

        Value to encode, should be one of: Uint8Array, bigint, boolean, string, or a safe integer number.

      • valueIdentifier: string

        Identifier used in error messages.

      Returns Uint8Array

      Bytes representation of the value.

      CashAssemblyNumberNotSafeIntegerError When a number is not a safe integer.

      CashAssemblyUnsupportedValueTypeError When the value type cannot be resolved.