CBOR Tag

enum cardano_cbor_tag_t

Represents a CBOR semantic tag (major type 6).

Semantic tags in CBOR (Concise Binary Object Representation) provide additional context to the data items that follow them, as defined in the CBOR standard (RFC 7049). These tags indicate how the subsequent data should be interpreted, ranging from date/time formats to various encoding schemes and specialized data types.

Values:

enumerator CARDANO_CBOR_TAG_DATE_TIME_STRING

Tag value for RFC3339 date/time strings.

Indicates that the following string data item is formatted according to the RFC3339 specification for date and time.

enumerator CARDANO_CBOR_TAG_UNIX_TIME_SECONDS

Tag value for Epoch-based date/time in seconds.

Denotes that the following integer data item represents a date and time as the number of seconds elapsed since the Unix epoch (1970-01-01T00:00Z).

enumerator CARDANO_CBOR_TAG_UNSIGNED_BIG_NUM

Tag value for unsigned bignum encodings.

Used to encode arbitrarily large unsigned integers that cannot fit within the standard integer data item types.

enumerator CARDANO_CBOR_TAG_NEGATIVE_BIG_NUM

Tag value for negative bignum encodings.

Represents arbitrarily large negative integers, complementing the unsigned bignum encoding for handling integers beyond the built-in integer types.

enumerator CARDANO_CBOR_TAG_DECIMAL_FRACTION

Tag value for decimal fraction encodings.

Allows for the precise representation of decimal numbers using a base-10 exponent notation. Followed by an array of two integers: the exponent and the significand.

enumerator CARDANO_CBOR_TAG_BIG_FLOAT

Tag value for big float encodings.

Encodes floating-point numbers with arbitrary precision. Followed by an array of two integers representing the base-2 exponent and significand.

enumerator CARDANO_ENCODED_CBOR_DATA_ITEM

Tag value for byte strings containing embedded CBOR data item encodings.

enumerator CARDANO_ENCODED_CBOR_RATIONAL_NUMBER

Tag value for Rational numbers, as defined in http://peteroupc.github.io/CBOR/rational.html.

enumerator CARDANO_CBOR_TAG_SET

Tag value for set<a> = #6.258([* a]) / [* a], nonempty_set<a> = #6.258([+ a]) / [+ a], nonempty_oset<a> = #6.258([+ a]) / [+ a]

enumerator CARDANO_CBOR_TAG_SELF_DESCRIBE_CBOR

Tag value for the Self-Describe CBOR header (0xd9d9f7).

When placed at the beginning of a CBOR document, this tag signals that the document is encoded in CBOR, facilitating content type detection.