Marmot-TS
    Preparing search index...

    Function decodeEncryptedMediaPolicyV1

    • Decodes marmot.group.encrypted-media.v1 component data bytes strictly.

      Per darkmatter decode_encrypted_media_policy_v1 and foundation/canonical-encoding.md ("Canonical decoding"), this is a decoder of signed, state-selecting Marmot bytes: it MUST reject input that is not already canonical and MUST NOT trim, case-fold, normalize, deduplicate, or reorder anything. Every check is a validation; a failure throws. Repairing non-canonical state here (as the old producer-normalizePolicy reuse did) forks commit acceptance against conformant implementations.

      Parameters

      • data: Uint8Array

      Returns EncryptedMediaPolicyV1