@blockchaincommons/dcbor - v1.0.0-beta.1
Preparing search index...
@blockchaincommons/dcbor
bigintToCbor
Function bigintToCbor
bigintToCbor
(
value
:
bigint
)
:
Cbor
Encode a bigint as a CBOR tag 2 or tag 3 bignum.
Non-negative values use tag 2 (positive bignum).
Negative values use tag 3 (negative bignum), where the encoded magnitude is
|value| - 1
per RFC 8949.
Parameters
value
:
bigint
Any bigint value
Returns
Cbor
CBOR tagged value
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@blockchaincommons/dcbor - v1.0.0-beta.1
Loading...
Encode a bigint as a CBOR tag 2 or tag 3 bignum.
|value| - 1per RFC 8949.