Const
Deserializes application data bytes back into a rumor, enforcing the Marmot inner-event encoding rules (foundation/application-messages.md §Encoding).
foundation/application-messages.md
Strict decode, matching what MDK accepts (cgka-traits MarmotAppEvent::decode):
cgka-traits
MarmotAppEvent::decode
id, pubkey, created_at, kind, tags, content
sig
created_at
kind
pubkey
id
tags
[0, pubkey, created_at, kind, tags, content]
This is the integrity half of the authorship checks; the verifyApplicationRumorAuthorship layer adds the MLS-sender binding.
The serialized application data
The deserialized, id-verified Rumor
if the bytes are not a strictly-conformant, id-consistent rumor
Kept for internal compatibility. Prefer deserializeApplicationData.
deserializeApplicationData
Deserializes application data bytes back into a rumor, enforcing the Marmot inner-event encoding rules (
foundation/application-messages.md§Encoding).Strict decode, matching what MDK accepts (
cgka-traitsMarmotAppEvent::decode):id, pubkey, created_at, kind, tags, content— nosig, no unknown member, no duplicate key;created_atandkindare plain non-negative JSON integers;pubkeyandidare 64 lowercase hex characters,tagsis an array of string arrays, and no string carries an unpaired surrogate;idequals the canonical NIP-01 event id recomputed from the other members (lowercase-hex SHA-256 of[0, pubkey, created_at, kind, tags, content]).This is the integrity half of the authorship checks; the verifyApplicationRumorAuthorship layer adds the MLS-sender binding.