Skip to main content

Module config

Module config 

Source
Expand description

Shared configuration loading.

Loads config from (in order, later overrides earlier):

  1. Embedded defaults.
  2. node.toml at the provided path (or $HOME/.arknet/node.toml if None).
  3. Environment variables prefixed ARKNET_ (double-underscore as section separator).

Phase 0 stub: parses the shape without validating semantics. Validation (stake minimums, role combinations, hardware budgets) lands in [arknet-node] during Weeks 11-12.

Structs§

ComputeResources
Per-compute-role budget.
DaSection
Data availability layer settings.
NetworkSection
[network] section.
NodeConfig
Top-level node configuration.
NodeSection
[node] section.
OperatorSection
[operator] section.
ResourcesSection
[resources] section.
RolesSection
[roles] section.
RouterResources
Per-router-role budget.
TeeSection
[tee] section — confidential inference via hardware TEE.
TelemetrySection
[telemetry] section.
ValidatorResources
Per-validator-role settings.
VerifierResources
Per-verifier-role budget.