StaticnewStaticfromCreates a new UR from a UR string.
A UR string like "ur:test/..."
Returns the UR type.
Returns the UR type as a string.
Returns the CBOR data.
Returns the QR string representation (uppercase, most efficient for QR codes).
Returns the QR data as bytes (uppercase UR string as UTF-8).
Checks if the UR type matches the expected type.
The expected type
Returns the string representation.
A Uniform Resource (UR) is a URI-encoded CBOR object.
URs are defined in BCR-2020-005: Uniform Resources.
Example