Expand description
Cross-node signed capability advertisements (WEFT-147). Cross-node capability-claim verification (WEFT-147).
Peer nodes previously advertised free-form capability strings on
crate::cluster::PeerNode with no authenticity check. This module
provides:
- An allow-list of known capability tokens.
- A canonical claim payload + Ed25519 signed advertisement.
- Verify helpers that reject unknown tokens and tampered signatures.
Wire format: JSON body + 64-byte Ed25519 signature over the canonical
CBOR-ish UTF-8 payload bytes (stable field order via
CapabilityClaim::signing_bytes).
Structs§
- Capability
Claim - Unsigned capability claim body.
- Signed
Capability Advertisement - Signed capability advertisement for mesh exchange.
Enums§
- Capability
Claim Error - Errors from capability-claim validation / crypto.
Constants§
- CAPABILITY_
ALLOWLIST - Allow-listed capability tokens a node may advertise (WEFT-147).
Functions§
- apply_
verified_ capabilities - Apply a verified advertisement onto a
crate::cluster::PeerNode. - sign_
claim - Sign a claim with an Ed25519 signing key (mesh / exochain feature).
- validate_
capabilities - Validate every capability string in a free-form peer list.
- validate_
capability - Return
Ok(())ifcapis on the allow-list. - verify_
signed_ advertisement - Verify signature + allow-list. Does not check
expires_atclock skew (caller may enforce).