Skip to main content

Module processor

Module processor 

Source
Expand description

Processor of rings-node rpc server.

Structs§

DelegationHorizon
The signing horizon h = e − Δ of a node’s own delegation.
NetworkConfigDescriptor
Serde-extensible tagged network configuration descriptor (#1291).
Processor
Processor for rings-node rpc server.
ProcessorBuilder
ProcessorBuilder is used to initialize a Processor instance.
ProcessorConfig
ProcessorConfig is usually serialized as json or yaml. There is a from_config method in ProcessorBuilder used to initialize the Builder with a serialized ProcessorConfig.
ProcessorConfigSerialized
ProcessorConfigSerialized is a serialized version of ProcessorConfig. Instead of storing the DelegateeKey instance, it stores the dumped string representation of the delegatee key.
TransportNetworkConfig
Default network configuration for the built-in traversal-assisted transport backend.
UdpPortRange
A validated inclusive local UDP port range [min, max].
WebrtcNetworkParameters
Built-in WebRTC network parameters pairing TransportNetworkConfig with an explicit TurnCredentialMode (Delegatee by default, or Account for non-expiring account-signed TURN credentials).

Enums§

OfferReplyKind
Whether the payload returned by answerOffer is an answer (ConnectNodeReport) or a counter-offer (ConnectNodeSend).
SigningState
What a node can do at one instant, by its own delegation.
TurnCredentialMode
Explicit TURN credential signing mode for WebRTC network parameters (#1291).
UdpPortRangeError
Error returned when a UDP port range cannot witness the range invariant 1 <= min <= max.

Constants§

SIGNING_HORIZON_LEAD_MS
How long before its horizon a node starts warning that it will go mute: one day, so an operator can rotate the delegation before the process ends.

Traits§

NodeNetworkParameters
Trait defining the network parameters that customize and instantiate a node’s transport (#1291).

Functions§

register_network_transport_factory
Register a custom NodeNetworkParameters factory under kind so native config.yaml, ProcessorConfigSerialized, FFI, and browser WASM serialized configurations can instantiate network: { kind: "<kind>", params: { ... } } (#1291).
resolve_network_config_descriptor
Resolve a deserialized NetworkConfigDescriptor into a concrete NodeNetworkParameters instance via the process-wide transport registry.

Type Aliases§

NetworkParametersFactory
Factory closure converting a deserialized params JSON value from a NetworkConfigDescriptor into a validated NodeNetworkParameters instance.
SessionRotationCommit
Infallible phase-2 commit closure returned by NodeNetworkParameters::prepare_session_key_rotation.