@blockchaincommons/tags - v1.0.0-beta.3
    Preparing search index...

    Function registerTags

    • Register dcbor's standard tags and every tag in ALL_TAGS into store (default: the global store), in the reference's order: date (tag 1) with its summarizer, then the 75 tags of this package.

      Idempotent: a value already registered under the same name is a no-op, and a name already registered under another value moves to this package's value, as the reference's insert_all does. Tags 2 and 3 stay unnamed, as in the reference's default build; for the num-bigint registry call registerStandardTags(store, { bignum: true }) before this function.

      Parameters

      • store: TagsStore = ...

        The store to register into; defaults to dcbor's global store.

      Returns void

      Code Custom (dcbor's store) when a value is already registered under a different name; the message is the reference's panic text, e.g. Attempt to register tag: 200 'foo' with different name: 'envelope'. Tags registered earlier in the same call stay registered, and the rejected entry is unchanged.