Skip to content

thenodes v0.1.0

Choose a tag to compare

@yerkeroa yerkeroa released this 29 Oct 16:37
· 56 commits to main since this release

thenodes v0.1.0

Initial release of the thenodes crate: a modular, plugin-driven P2P node framework for Rust.

Highlights

  • Core framework published as a library crate (dual-licensed Apache-2.0 OR MIT).
  • Two operation modes:
    • Node-Embedded Plugins (NEP): main binary can host plugins for app logic.
    • Core-as-a-Library (CAL): use TheNodes as a reusable library in your own binaries.
  • Async-first APIs built on Tokio; designed for non-blocking I/O and concurrency.
  • Security and trust policy:
    • TLS via rustls (optional, opt-in via config).
    • PKI directory layout for own/trusted/issuer/rejected materials.
    • Trust modes: open and allowlist; supports SPKI fingerprint and subject pinning.
  • Realms to define logical network boundaries for compatible communication.
  • Configuration-driven behavior (TOML).
  • Examples and tests, including trust policy coverage.

Compatibility and stability

  • Version 0.1.0 establishes the baseline API; pre-1.0 SemVer means breaking changes may occur in minor versions.

Getting started

cargo add thenodes@0.1.0
# or in Cargo.toml:
# thenodes = "0.1.0"

Configuration (excerpt)

[encryption]
enabled = true

[encryption.paths]
own_certificate  = "pki/own/cert.pem"
own_private_key  = "pki/own/key.pem"
trusted_cert_dir = "pki/trusted/certs"
trusted_crl_dir  = "pki/trusted/crl"
rejected_dir     = "pki/rejected"
issuer_cert_dir  = "pki/issuers/certs"
issuer_crl_dir   = "pki/issuers/crl"

Links

Notes

  • TLS is enabled by default; disable it by setting [encryption] enabled = false in your config.
  • TheNodes includes a built-in tool to generate/manage PKI materials (CA and node certs/keys). Use it to create development or production certificates and place them into the configured PKI paths.
  • PKI directories are required when TLS is enabled (the default).
  • When TLS is disabled, all traffic is plaintext; use only in trusted/dev environments.
  • Uses rustls; no OpenSSL/C interop.