Skip to main content

Crate scp_node

Crate scp_node 

Source
Expand description

Application node for SCP deployments.

scp-node provides ApplicationNode, a concrete SDK type that composes an SCP relay, an identity, and storage into a single deployable unit. It is the “one box” deployment pattern – relay + participant + storage on one machine.

See spec section 18.6 and ADR-032 in .docs/adrs/phase-2.md.

Re-exports§

pub use http::BroadcastContext;
pub use projection::ProjectedContext;

Modules§

bridge_auth
DID-signed bearer token authentication for bridge HTTP endpoints.
bridge_handlers
HTTP handlers for bridge endpoints.
dev_api
Dev API handlers for local development and diagnostics.
http
HTTP routing for ApplicationNode.
projection
Broadcast projection registry and key management.
tls
ACME-based TLS provisioning for ApplicationNode.

Structs§

ApplicationNode
A complete SCP application node composing relay, identity, and storage.
ApplicationNodeBuilder
Builder for ApplicationNode.
DefaultNatStrategy
Default NAT strategy using real STUN probing, UPnP, and bridge relay.
HasDomain
Marker: domain has been set on the builder.
HasIdentity
Marker: identity has been configured on the builder.
HasNoDomain
Marker: zero-config (no domain) mode has been explicitly selected (§10.12.8).
IdentityHandle
Handle to the node’s DID identity.
NoDomain
Marker: domain has not been set on the builder.
NoIdentity
Marker: identity has not been configured on the builder.
RelayHandle
Handle to the running relay server.

Enums§

NodeError
Errors produced by ApplicationNode construction and operation.
ReachabilityTier
Result of the NAT tier selection process during zero-config deployment (spec section 10.12.8).

Constants§

DEFAULT_HTTP_BIND_ADDR
Default bind address for the public HTTP server (0.0.0.0:8443).
DEFAULT_PROJECTION_RATE_LIMIT
Default per-IP rate limit for broadcast projection endpoints (requests per second).

Traits§

NatStrategy
Strategy for NAT probing and tier selection (spec section 10.12.8).
TlsProvider
Strategy for TLS certificate provisioning (spec section 18.6.3).

Functions§

builder
Returns a new ApplicationNodeBuilder.