Creates an instance of this type from a UR.
The UR to decode from
An instance of this type
OptionalfromCreates an instance of this type from a UR string.
This is a convenience method that parses the UR string and then calls fromUR().
The UR string to decode from (e.g., "ur:type/...")
An instance of this type
A type that can be decoded from a UR (Uniform Resource).
Types implementing this interface should be able to create themselves from a UR containing their data.
Example