Skip to main content

decode

Function decode 

Source
pub fn decode(url: &str) -> Result<InviteLink>
Expand description

Parse a huddle://invite#... URL back into an InviteLink.

huddle 0.7.11: when v >= 2, this also verifies the signature against the embedded pubkey, re-derives the fingerprint, and rejects invites whose signed_at_ms is older than INVITE_MAX_AGE_MS. v == 1 (legacy) parses unchanged so older invites still work, but callers should display a “this invite is unsigned” warning.