Expand description
Processor of rings-node rpc server.
Structs§
- Delegation
Horizon - The signing horizon
h = e − Δof a node’s own delegation. - Network
Config Descriptor - Serde-extensible tagged network configuration descriptor (#1291).
- Processor
- Processor for rings-node rpc server.
- Processor
Builder - ProcessorBuilder is used to initialize a Processor instance.
- Processor
Config - ProcessorConfig is usually serialized as json or yaml.
There is a
from_configmethod in ProcessorBuilder used to initialize the Builder with a serialized ProcessorConfig. - Processor
Config Serialized ProcessorConfigSerializedis a serialized version ofProcessorConfig. Instead of storing theDelegateeKeyinstance, it stores the dumped string representation of the delegatee key.- Transport
Network Config - Default network configuration for the built-in traversal-assisted transport backend.
- UdpPort
Range - A validated inclusive local UDP port range
[min, max]. - Webrtc
Network Parameters - Built-in WebRTC network parameters pairing
TransportNetworkConfigwith an explicitTurnCredentialMode(Delegateeby default, orAccountfor non-expiring account-signed TURN credentials).
Enums§
- Offer
Reply Kind - Whether the payload returned by
answerOfferis an answer (ConnectNodeReport) or a counter-offer (ConnectNodeSend). - Signing
State - What a node can do at one instant, by its own delegation.
- Turn
Credential Mode - Explicit TURN credential signing mode for WebRTC network parameters (#1291).
- UdpPort
Range Error - 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§
- Node
Network Parameters - Trait defining the network parameters that customize and instantiate a node’s transport (#1291).
Functions§
- register_
network_ transport_ factory - Register a custom
NodeNetworkParametersfactory underkindso nativeconfig.yaml,ProcessorConfigSerialized, FFI, and browser WASM serialized configurations can instantiatenetwork: { kind: "<kind>", params: { ... } }(#1291). - resolve_
network_ config_ descriptor - Resolve a deserialized
NetworkConfigDescriptorinto a concreteNodeNetworkParametersinstance via the process-wide transport registry.
Type Aliases§
- Network
Parameters Factory - Factory closure converting a deserialized
paramsJSON value from aNetworkConfigDescriptorinto a validatedNodeNetworkParametersinstance. - Session
Rotation Commit - Infallible phase-2 commit closure returned by
NodeNetworkParameters::prepare_session_key_rotation.