Skip to main content

mesh_kem_recipient

Function mesh_kem_recipient 

Source
pub fn mesh_kem_recipient(doc: &Value) -> Option<RecipientPublic>
Expand description

Extract the #mesh-kem hybrid-KEM recipient public from a DID document’s keyAgreement relationship (#1137 remote-node bootstrap).

The publisher emits one Multikey VM per suite leg (X25519, then ML-KEM-768, multicodec-prefixed base58btc). The extractor requires EXACTLY one of each, reassembles them in the pinned suite’s component order, and runs [RecipientPublic::validate] — a partial, duplicated, reordered, or malformed relationship is None (caller fails closed), never a partial recipient.