Extract content if has specific tag, throwing if not.
Throws { type: "WrongType" } if cbor is not tagged at all, otherwise { type: "WrongTag", expected, actual } if the tag doesn't match.
{ type: "WrongType" }
cbor
{ type: "WrongTag", expected, actual }
CBOR value
Expected tag value
Tagged content
Extract content if has specific tag, throwing if not.
Throws
{ type: "WrongType" }ifcboris not tagged at all, otherwise{ type: "WrongTag", expected, actual }if the tag doesn't match.