Function bigIntToBinUint256BEClamped

  • Encode a positive BigInt into an unsigned 32-byte big-endian Uint8Array. This can be used to encoded numbers for cryptographic primitives like private keys, public keys, curve parameters, and signature points.

    Negative values will return the same result as 0, values higher than 2^256-1 will return the maximum expressible unsigned 256-bit value (0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff).


    • value: bigint

      the BigInt to encode

    Returns Uint8Array

Generated using TypeDoc