Function binToBigIntUint256BE

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

    If starting from a hex value, consider using the BigInt constructor instead:

    BigInt(`0x${hex}`)
    

    For the reverse, see bigIntToBinUint256BEClamped.

    Parameters

    • bin: Uint8Array

      the Uint8Array to decode

    Returns bigint

Generated using TypeDoc