Implement cryptographic signature verification in Nexus module
Package: packages/agent-os/modules/nexus/
What
The Nexus module (agent registry and escrow) has TODO comments marking unimplemented cryptographic signature verification:
registry.py — TODO: Verify signature against verification key (2 occurrences)
escrow.py — TODO: Generate actual signature
These are security-critical paths where agents register identities and escrow capabilities.
Why
Without actual signature verification, agents could register with forged identities. This is a security gap in the trust chain.
How
- Look at how signing is implemented in
packages/agent-mesh/src/agentmesh/trust/ for the pattern
- In
registry.py: use the agent's public key to verify the signature on registration payloads
- In
escrow.py: generate Ed25519 signatures using the agent's private key
- The toolkit uses
cryptography and pynacl — both are already dependencies
- Add tests that verify: valid signatures pass, tampered payloads fail, wrong keys fail
Reference
Acceptance Criteria
Implement cryptographic signature verification in Nexus module
Package:
packages/agent-os/modules/nexus/What
The Nexus module (agent registry and escrow) has TODO comments marking unimplemented cryptographic signature verification:
registry.py—TODO: Verify signature against verification key(2 occurrences)escrow.py—TODO: Generate actual signatureThese are security-critical paths where agents register identities and escrow capabilities.
Why
Without actual signature verification, agents could register with forged identities. This is a security gap in the trust chain.
How
packages/agent-mesh/src/agentmesh/trust/for the patternregistry.py: use the agent's public key to verify the signature on registration payloadsescrow.py: generate Ed25519 signatures using the agent's private keycryptographyandpynacl— both are already dependenciesReference
packages/agent-mesh/src/agentmesh/trust/identity.pyAcceptance Criteria
registry.pyverifies signatures using Ed25519 public keysescrow.pygenerates Ed25519 signatures