Skip to main content

Module model

Module model 

Source
Expand description

Typed protocol models for CMN.

Structs§

BfsResult
Result of a generic BFS traversal.
BondGraphNode
BondProjection
Lightweight bond projection containing only relation and URI.
BondTraversalHit
BondTraversalQuery
BondTraversalResult
CmnCapsuleEntry
A single capsule entry in cmn.json
CmnEndpoint
A single typed endpoint entry in cmn.json.
CmnEntry
CMN Entry - the cmn.json file at /.well-known/cmn.json
KeyHistoryEntry
A historical public key entry, kept for verified rotations/revocations.
KeyRotationStatement
Statement signed by an old domain key to authorize its successor.
Mycelium
Full Mycelium manifest (content-addressed)
MyceliumCapsule
Mycelium capsule containing uri, core, and core_signature
MyceliumCore
Core mycelium data (part of hash)
MyceliumCoreSpore
Spore entry in mycelium’s spores list
MyceliumCoreTaste
Taste entry in mycelium’s tastes list
Nutrient
Single nutrient method entry
Spore
Full Spore manifest (content-addressed)
SporeBond
Bond to another spore
SporeCapsule
Spore capsule containing uri, core, core_signature, and distribution info
SporeCore
Core spore data (immutable, part of hash)
SporeCoreDocument
Local spore.core.json document used during development.
SporeDist
Distribution entry in a spore manifest.
SporeTree
Tree hash configuration: algorithm, exclusions, and ignore rules
Taste
Full Taste manifest (content-addressed)
TasteCapsule
Taste capsule containing uri, core, and core_signature
TasteCore
Core taste data (part of hash)
TasteVerdictRecord
A lightweight local taste verdict record for client-side caching.
VerdictSummary
Aggregated verdict counts across multiple taste reports.

Enums§

BondRelation
BondTraversalDirection
CapsuleHostingKind
DistKind
Distribution type for a spore.
DomainKeyConfirmation
GateAction
GateOperation
KeyConfirmation
Confirmation details for a key accepted by cmn.json.
KeyHistoryStatus
Lifecycle state for a historical key.
KeyTrustClass
KeyTrustDecision
KeyTrustFailure
KeyTrustRefreshPolicy
KeyTrustWarning
KeyTrustWitnessPolicy
TasteVerdict

Constants§

CMN_SCHEMA
KEY_ROTATION_PURPOSE
MAX_BOND_DEPTH
Maximum allowed bond traversal depth to prevent runaway resolution.
MYCELIUM_SCHEMA
SPORE_CORE_SCHEMA
SPORE_SCHEMA
TASTE_SCHEMA

Traits§

PrettyJson
Trait for canonical pretty-printing of CMN protocol types.

Functions§

bfs_traverse
Generic synchronous BFS traversal.
bonds_match_all
Check if all required bond filters are satisfied by the given bonds.
build_key_rotation_statement
classify_capsule_hosting
decide_key_trust
decode_cmn_entry
decode_mycelium
decode_spore
decode_taste
evaluate_signed_capsule_validity
format_cmn_entry
Apply key ordering to CmnEntry after it’s already a Value. Useful when the CmnEntry has already been serialized/validated.
format_spore_core_draft
Format a spore core draft value for writing to spore.core.json. Strips updated_at_epoch_ms and applies canonical key ordering.
latest_taste_reports_by_taster
Return the latest report for each (taster domain, taster key, target_uri).
needs_key_trust_refresh
traverse_bond_graph
verify_key_rotation_statement