@blockchaincommons/dcbor - v1.0.0-beta.3
    Preparing search index...
    • Construct a tagged value - the only explicit tagged-value constructor.

      Parameters

      • tag: CborNumber | Tag

        The tag number (number | bigint) or a Tag object. Its .value goes on the wire; a .name is kept on the node (see CborTaggedType.tagName) so a WrongTag error can name the tag that was found, as the reference does.

      • content: CborInput

        Anything cbor() accepts.

      Returns Cbor

      taggedValue(1, 1675854714);        // epoch date, tag 1
      taggedValue(Tag.from(32), "https://example.com/"); // URI, tag 32