Failures are URErrors with a code: the reference's eight,
plus InvalidParameter for an argument outside its domain (checked
before any work) and TagUnnamed where the reference panics. Two
exceptions come from @blockchaincommons/dcbor: decodeURWith
reports a wrong UR type as a CborError (Custom), as the reference's
from_ur does, and urFor passes on dcbor's own error for a
value whose toCbor() is not tagged with its first tag.
Bytewords live on @blockchaincommons/uniform-resources/bytewords, the
fountain code on …/fountain.
@blockchaincommons/uniform-resources - Uniform Resources (BCR-2020-005): CBOR payloads as
ur:<type>/<bytewords>strings, single- or multi-part.code: the reference's eight, plusInvalidParameterfor an argument outside its domain (checked before any work) andTagUnnamedwhere the reference panics. Two exceptions come from@blockchaincommons/dcbor: decodeURWith reports a wrong UR type as aCborError(Custom), as the reference'sfrom_urdoes, and urFor passes on dcbor's own error for a value whosetoCbor()is not tagged with its first tag.@blockchaincommons/uniform-resources/bytewords, the fountain code on…/fountain.