Encode a non-negative bigint as a CBOR tag 2 (positive bignum).
Matches Rust's From<BigUint> for CBOR.
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.
A non-negative bigint (must be >= 0n)
CBOR tagged value
CborError with type OutOfRange if value is negative
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.