Skip to main content

Module identity

Module identity 

Source
Expand description

Identity types used to index the public compartment.

The public compartment is identity-indexed: a (module_id, app_id) pair scopes a namespace, and within it each entry is addressed by an Identity. Identities are deliberately a small sum type so the Store can validate shape before touching the backend.

Concretely the variants mirror the README’s identity-based signature scheme: the public key is the user’s unique info (e.g. email), and put_public requires the caller to supply a detached signature over the identity so verifiers can check authenticity before trusting the key.

Enums§

Identity
One of the supported identity shapes. Stored as the key of the public compartment’s HashMap; serialised to a canonical string for FFI and backend persistence.