A copy of the bytes; mutating it does not touch this value.
StaticcodecTagged-CBOR codec; decode also accepts the untagged form.
StaticrandomA fresh random ARID; pass rng to make it deterministic.
StaticfromStaticfromThe data as a hexadecimal string.
Get base64 representation.
The first four bytes of the ARID as a hexadecimal string.
Get string representation.
The CBOR tags this type decodes from; the first one is used to encode.
Returns the untagged CBOR encoding (as a byte string).
The tagged CBOR form.
As a UR, typed by the first tag's name.
Staticfrom
An "Apparently Random Identifier" (ARID)
An ARID is a cryptographically strong, universally unique identifier with the following properties:
Unlike digests/hashes which identify a fixed, immutable state of data, ARIDs can serve as stable identifiers for mutable data structures.
ARIDs should not be confused with or cast to/from other identifier types (like UUIDs), used as nonces, keys, or cryptographic seeds.
As defined in BCR-2022-002.
CBOR Serialization
ARIDimplements the CBOR tagged encoding interfaces, which means it can be serialized to and deserialized from CBOR with a specific tag (TAG_ARID = 40012).UR Serialization
When serialized as a Uniform Resource (UR), an
ARIDis represented as a binary blob with the type "arid".Example