Skip to main content

Module invite

Module invite 

Source
Expand description

Invite format for contributor onboarding.

An invite is a lightweight JSON blob that solves the bootstrap problem: the manifest is encrypted inside commits (via content_key derived from root key), so you need the root key to read the manifest, but you need the manifest to get the root key. The invite provides the ECIES-wrapped key outside the commit chain as a one-time bootstrap token.

Once cloned via invite, subsequent access uses the manifest embedded in commits.

Structs§

Invite
A lightweight invite blob for contributor onboarding.

Constants§

INVITE_TYPE_V1
Magic type identifier for invite blob detection.

Functions§

is_invite_blob
Try to detect whether a byte slice is a void invite blob.
parse_invite
Parse an invite from JSON bytes, returning None if not an invite.