Skip to main content

Crate libfcp_core

Crate libfcp_core 

Source
Expand description

Transport-agnostic FCP federation connection-control core.

Applications use Connection to bind one WebRTC negotiation attempt to a federation and endpoint keys. The core neither parses SDP/ICE nor CFR payloads; platform adapters and the CFR bridge own those separate concerns.

Structs§

AttemptId
A fresh application-provided connection-attempt ID.
CloseCode
A forward-compatible application close code carried in a signed FCP close envelope.
Connection
Per-peer state machine for one FCP connection attempt.
ControlChannelConfig
Fixed FCP data-channel configuration that platform adapters must enforce.
EndpointIdentity
An immutable FCP endpoint identity.
EndpointKey
An Ed25519 endpoint key used to authenticate FCP envelopes.
Envelope
A verified or to-be-signed FCP envelope.
EnvelopeId
An envelope id derived from the complete canonical signed bytes.
FederationConfiguration
Immutable federation policy snapshot published by its selected authority.
FederationId
A federation routing namespace.
FederationMember
Explicit association between a CFR participant identity and an FCP endpoint identity.
SignedFederationConfiguration
A federation configuration signed by its configured authority identity.
SigningIdentity
An implementation-owned signing identity with both required private keys.
WebRtcBinding
A digest binding an exact engine description and its DTLS fingerprint.

Enums§

Action
An action emitted by the core for an untrusted transport or platform adapter.
Body
The kind-specific canonical FCP body.
Error
FCP parse, validation and state-machine failure.
Kind
FCP envelope kind.
Phase
Connection lifecycle state.

Constants§

CONTROL_CHANNEL
Required FCP data-channel configuration.
FCP_WIRE_MARKER
Stable FCP wire marker.
FCP_WIRE_VERSION
Current FCP wire version.
FEDERATION_CONFIG_MARKER
Stable marker for a signed FCP federation configuration.
FEDERATION_CONFIG_VERSION
Current signed federation configuration format version.
MAX_CANDIDATE_BYTES
Maximum opaque ICE-candidate length.
MAX_CFR_CONTROL_BYTES
Maximum carried CFR control payload length.
MAX_DESCRIPTION_BYTES
Maximum opaque offer or answer description length.
MAX_ENVELOPE_BYTES
Maximum complete FCP envelope length, including two endpoint identities and signatures.
MAX_FEDERATION_MEMBERS
Maximum members in one configuration snapshot.
MAX_SEEN_ENVELOPES
Maximum deduplicated accepted envelopes retained per connection attempt.
ML_DSA_65_PUBLIC_KEY_BYTES
FIPS 204 ML-DSA-65 encoded public-key width.
ML_DSA_65_SIGNATURE_BYTES
FIPS 204 ML-DSA-65 encoded signature width.
PROTOCOL_ID
Stable FCP data-channel subprotocol identifier.

Traits§

EndpointSigner
An endpoint capable of producing both mandatory FCP signatures.