Skip to main content

Module model

Module model 

Source
Expand description

Typed protocol models for CMN.

Structs§

BondGraphNode
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
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
PreviousKey
A retired public key, kept for verifying historical content
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)

Enums§

BondRelation
BondTraversalDirection
CapsuleHostingKind
DistKind
Distribution type for a spore.
DomainKeyConfirmation
GateAction
GateOperation
KeyTrustClass
KeyTrustDecision
KeyTrustFailure
KeyTrustRefreshPolicy
KeyTrustWarning
KeyTrustWitnessPolicy
TasteVerdict

Constants§

CMN_SCHEMA
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§

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.
needs_key_trust_refresh
traverse_bond_graph