Skip to content

Opacus v0.7.0 - protocol + hardening

Choose a tag to compare

@opacusio opacusio released this 23 Oct 12:33
· 80 commits to main since this release

Opacus v0.7.0 - swap upgrade frame + identity hardening

Protocol and hardening release: an authenticated connection can now be
explicitly upgraded into the swap plane (NetMsg::Upgrade + attach_swap
handover, opacusd wires both services), and the node identity secret is
zeroized in memory behind a non-Copy SecretScalar wrapper - with the
workspace gate (fmt, tests, clippy -D warnings) fully green.

Added

crates/opacus-network - swap upgrade frame (N3b)

  • handshake.rs: post-auth NetMsg::Upgrade{plane} frame - the wire-level
    request to hand an authenticated connection to a named plane; the plane
    is validated structurally (1..=16 chars, no whitespace) and must name
    the one plane served today ("swap"), reusing the Malformed error for
    precise reasons (no new HandshakeError variant).
  • net_node.rs: NetNode::attach_swap + NetEvent::Upgraded - after the
    handshake the node serves Upgrade by handing the RAW socket to the
    attached swap node (adopt_stream) at a clean frame boundary; the
    control plane never sees swap frames and the swap plane never sees
    net frames. Without an attached swap plane every Upgrade is rejected
    and the connection closed; strict single-shot is preserved for
    everything else.
  • opacusd: when both the net service and the swap service are running,
    the daemon attaches the swap node to the net node, so peers upgrade
    straight into the swap choreography.
  • Tests: opacus-network 61 -> 65 (wire roundtrip and bad-plane
    rejection, Upgrade during the handshake, missing swap plane, and an
    end-to-end Offer -> Accept over an upgraded connection).

crates/opacus-network - zeroizing node identity secret (F4)

  • identity.rs: the secret scalar now lives in a SecretScalar wrapper
    (Zeroize + ZeroizeOnDrop, mirroring the opacus-crypto SpendingKey
    pattern): the scalar is overwritten with zeros when the identity is
    dropped. NodeIdentity is no longer Copy, so an identity cannot be
    silently duplicated; the Debug output still skips the secret, and
    the from_secret/generate/secret/load_or_generate API plus the
    on-disk file format are unchanged.

Changed

  • Workspace version bump 0.6.0 -> 0.7.0 (workspace.package plus the
    explicit crate versions in opacus-dex and opacus-zk; Cargo.lock
    regenerated).
  • README: status block and versioning line retargeted to v0.7.0; the
    roadmap Shipped paragraph covers both rounds (v0.6 networking,
    v0.7 protocol + hardening).
  • v0.7.0 annotated tag and GitHub release notes.