Skip to main content

Module signing

Module signing 

Source
Expand description

Ed25519 digital signatures for request envelope authentication.

All ZMQ messages are signed to provide:

  • Authentication: Proves who created the request
  • Integrity: Detects tampering
  • Non-repudiation: Signature survives message forwarding

§Signing Flow

  1. API server validates bearer token or JWT
  2. Signs RequestEnvelope (request_id, payload, nonce, iat) with Ed25519 key
  3. ZMQ service verifies signature before processing

Structs§

SigningKey
ed25519 signing key which can be used to produce signatures.
VerifyingKey
An ed25519 public key.

Functions§

generate_signing_keypair
Generate a new Ed25519 signing keypair.
signing_key_from_bytes
Load a signing key from 32 secret bytes.
verifying_key_from_bytes
Load a verifying key from 32 public key bytes.