Expand description
Typed protocol models for CMN.
Structs§
- Bond
Graph Node - Bond
Traversal Hit - Bond
Traversal Query - Bond
Traversal Result - CmnCapsule
Entry - 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)
- Mycelium
Capsule - Mycelium capsule containing uri, core, and core_signature
- Mycelium
Core - Core mycelium data (part of hash)
- Mycelium
Core Spore - Spore entry in mycelium’s spores list
- Mycelium
Core Taste - Taste entry in mycelium’s tastes list
- Nutrient
- Single nutrient method entry
- Previous
Key - A retired public key, kept for verifying historical content
- Spore
- Full Spore manifest (content-addressed)
- Spore
Bond - Bond to another spore
- Spore
Capsule - Spore capsule containing uri, core, core_signature, and distribution info
- Spore
Core - Core spore data (immutable, part of hash)
- Spore
Core Document - Local
spore.core.jsondocument used during development. - Spore
Dist - Distribution entry in a spore manifest.
- Spore
Tree - Tree hash configuration: algorithm, exclusions, and ignore rules
- Taste
- Full Taste manifest (content-addressed)
- Taste
Capsule - Taste capsule containing uri, core, and core_signature
- Taste
Core - Core taste data (part of hash)
Enums§
- Bond
Relation - Bond
Traversal Direction - Capsule
Hosting Kind - Dist
Kind - Distribution type for a spore.
- Domain
KeyConfirmation - Gate
Action - Gate
Operation - KeyTrust
Class - KeyTrust
Decision - KeyTrust
Failure - KeyTrust
Refresh Policy - KeyTrust
Warning - KeyTrust
Witness Policy - Taste
Verdict
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§
- Pretty
Json - 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_msand applies canonical key ordering. - needs_
key_ trust_ refresh - traverse_
bond_ graph