Marmot-TS
    Preparing search index...

    Function checkKeyPackageProposalsTag

    • Checks a kind 30443 event's mls_proposals tag against the decoded KeyPackage leaf's capabilities.proposals.

      Values are compared as exact strings against the canonical lowercase 0x%04x spelling of each leaf id, with no parsing, so a non-canonical spelling is a mismatch. An exact match (GREASE included) is what MDK requires. The grease-stripped mode exists to accept KeyPackages from older marmot-ts publishers that filtered GREASE out of the tag; because it removes GREASE from both sides, a tag carrying different GREASE ids than the leaf still matches in that mode (GREASE ids carry no semantics).

      Never throws — malformed input is a typed result, not an exception.

      Type Parameters

      • T extends { tags: string[][] }

      Parameters

      • event: T

        The kind 30443 event (or any { tags } shape) to read the tag from

      • keyPackage: KeyPackage

        The KeyPackage decoded from the same event's content

      Returns KeyPackageProposalsTagCheck

      A KeyPackageProposalsTagCheck discriminated by kind

      • refs/marmot transports/nostr.md "KeyPackage publication" — id-list tags are compared as exact strings and MUST NOT repeat values
      • refs/mdk crates/marmot-app/src/key_package_records.rs require_multi_value_key_package_tag_matches