Skip to main content

Crate gent_crypto

Crate gent_crypto 

Source
Expand description

Owner-authorized membership and configuration. Native MLS persistence is implemented separately in gent-daemon::encrypted as a library proof.

An anchor and checkpoint must come from trusted local storage or an authenticated pairing channel. A relay-provided anchor or rollback of local storage defeats the trust boundary. Do not upload these plaintext records to a routing service.

Modules§

configuration_log
Admission to an opaque ordered log. This authenticates possession of the current write capability, not node policy or encrypted state contents. Endpoints must additionally verify the node signature and prior authority.
files
Immutable file objects for storage outside message envelopes.
pairing
A manually transferred 256-bit code authenticates encrypted bootstrap data. Never send the code, or its encryption key, to the routing service. This is deliberately not a short password scheme and has no human-chosen passwords.
peer
Versioned transition from owner-signed state to node-signed, ordered state.
recovery
Signed observations for owner recovery review. These never freeze a writer, grant ownership, choose a winning fork, or reactivate archived state.
stream
Authenticated ordering for opaque MLS packets. This is not an encryption layer.
succession
Authenticated signer succession, separate from daemon activation and key recovery.
web_failover
A configuration writer may carry web state without disclosing its keys.

Structs§

Checkpoint
Persist with the accepted signed state before exposing any new authorization.
ClusterState
ConfigurationGrant
Owner authorization for a private, two-node configuration distribution stream. The grant itself contains private metadata and needs protected pairing transport.
EnrollmentRequest
LegacyAgentBinding
NodeIdentity
A node’s signing identity. Encryption keys will belong to the selected session protocol. Deliberately has no Debug or Serialize implementation.
NodeMember
OwnerKey
Owner signing authority, distinct from the local owner RPC credential and node keys. Deliberately has no Debug or Serialize implementation.
ReplacedNode
Public identity of a lost joined node, pinned through the owner channel.
SignedConfigurationGrant
SignedEnrollment
SignedLegacyAgentBinding
SignedState
TrustAnchor
Pin this through an already trusted endpoint, never from an unverified directory.
VerifiedState
A verified history prefix. Its fields cannot be mutated without validation.

Constants§

MAX_CHAIN_BYTES
MAX_CHAIN_LENGTH
MAX_REQUEST_BYTES
MAX_STATE_BYTES
MAX_STATE_LIFETIME
REQUEST_LIFETIME

Functions§

agent_id
Public, node-bound IDs prevent an authenticated node from claiming another node’s chat UUID before the receiver has seen its directory announcement.
scoped_id
Domain-separated UUIDv8 identifier from length-prefixed public inputs.
validate_policy
Shared validation for TOML proposals and owner-signed policy records.
verify_helper_channel

Type Aliases§

Digest
PublicKey