Currently, any number that isn’t a "safe integer" in JavaScript definition is encoded as a CBOR big number. The issue is that also includes numbers in the range 2^53 < N < 2^64 that should instead be encoded as 64bit CBOR numbers. This is especially important for hardware wallets that doesn’t support bignums.
Currently, any number that isn’t a "safe integer" in JavaScript definition is encoded as a CBOR big number. The issue is that also includes numbers in the range 2^53 < N < 2^64 that should instead be encoded as 64bit CBOR numbers. This is especially important for hardware wallets that doesn’t support bignums.
The relevant code is here: https://github.com/mpizenberg/elm-cardano/blob/e23413ab78d70ce4168670b0202352f2bead219b/src/Cbor/Encode/Extra.elm#L31