Skip to main content

Module identity_updates

Module identity_updates 

Source

Modules§

dependencies
Exact, verified identity proofs for synchronous MLS state changes.

Structs§

IdentityRequirement
A proof at one exact identity sequence. Zero is not an identity sequence.
IdentityResolutionRegistry
Bound identity proof requests for one client.
IdentityUpdates
InstallationDiff
MissingProofs
Read cached proofs and record each missing one, so that one resolution fetches every proof an attempt lacks instead of one proof per attempt.
OwnInstallationEvents
How far this client has reported changes to its own installations.

Enums§

IdentityDependencyError
Separate a missing cached proof from invalid or unavailable identity history.
IdentityUpdateError
A failure to read, verify, build, or publish identity updates.
InstallationDiffError

Traits§

IdentityContext
A context the identity code runs on: core and identity resolution.
IdentityFeatures
Identity’s feature slot: the registry that coalesces exact identity lookups.

Functions§

apply_signature_request_with_verifier
Apply a signature request to the client’s inbox by publishing the identity update to the network.
batch_get_association_state_with_verifier
Get the association state for all provided inbox_id/optional sequence_id tuples, using the cache when available If the association state is not available in the cache, this falls back to reconstructing the association state from Identity Updates in the network.
get_association_state_for_client
get_association_state_with_verifier for a client: a computed state is stored by store_association_state, which emits handle.changed.
get_association_state_with_verifier
Get the association state for a given inbox_id up to the (and inclusive of) the to_sequence_id If no to_sequence_id is provided, use the latest value in the database
get_creation_signature_kind
get_installation_diff_local
Compare exact verified snapshots without network or signature-verifier calls. A creation placeholder has an empty identity baseline. It never selects the receiver’s latest identity state. New membership references must be nonzero. A missing proof does not stop the scan, so Need names every missing proof.
identifier_membership
Whether the association state of the inbox in the database holds the identifier, an Ethereum address in any letter case, or None when the database has no identity update of the inbox. Computing the state caches it in the database.
identifier_opens_inbox
Whether the identifier may open the database of the inbox, given its identifier_membership. Only the identity that creates an inbox belongs to it before its first identity update.
is_member_of_association_state
A static lookup method to verify if an identity is a member of an inbox
load_identity_updates
Store every identity update of inbox_ids newer than the latest stored one of each inbox.
load_identity_updates_for_client
Load identity updates. A load that includes this client’s own inbox reports the changes to its own installations of every update it stored, even when it fails after storing some pages.
publish_with_conflict_retry
Reload and validate the signed update after a commit-time conflict. Retry the same signed bytes at most three times. Other errors are terminal.
require_association_state
Read only a verified cached snapshot. Never resolve to a newer snapshot. The caller supplies the state transaction’s connection.
required_leaf_removals
Required removals include leafed identity removals and stale leaves of every inbox whose membership entry advances or disappears.
resolve_identity_requirements
Resolve every requirement of one parent and return one result for it. Each round loads the logs of every still-missing inbox in one request and checks each proof once, so absent references share one window. Successful primary reads must cover the full absence interval. A transport or verification error stops the interval and leaves dependent work pending. One failed proof does not cancel other checks or remove their verified cache entries.
revoke_installations_with_verifier
Revoke the given installations from the association state for the client’s inbox. More installations than one identity update may revoke fail before a request is built.
store_association_state
Store the association state of an inbox at sequence_id in the client’s cache. In the same write, read the newest state the client already holds for the inbox, and buffer handle.changed when the stored state changes its display handle. The event is emitted after the write commits.
stored_identifier_membership
identifier_membership for a caller that may make no request, such as an offline build. It reads only the database: the cached state, or one derived from the stored log. A state whose derivation needs a smart contract wallet verdict counts as not holding the identifier.