BC-DCBOR TypeScript Library - v1.0.0-alpha.20
    Preparing search index...

    Function biguintToCbor

    • Encode a non-negative bigint as a CBOR tag 2 (positive bignum).

      Matches Rust's From<BigUint> for CBOR.

      The value is always encoded as a bignum regardless of size. Zero is encoded as tag 2 with an empty byte string.

      Parameters

      • value: bigint

        A non-negative bigint (must be >= 0n)

      Returns Cbor

      CBOR tagged value

      CborError with type OutOfRange if value is negative