Expand description
ForgeWire wire protocol primitives.
Stage C.1: ed25519 sign + verify over canonical JSON envelopes, byte-compatible
with the existing Python implementation in scripts/remote/runner/identity.py
and scripts/remote/runner/runner_capabilities.py::canonical_payload.
The canonical form is serde_json with sorted keys and the compact separators
(',', ':'), matching Python’s
json.dumps(payload, sort_keys=True, separators=(",", ":")).
Enums§
- Protocol
Error - Errors surfaced by the protocol layer.
Functions§
- canonicalize
- Canonical-JSON encoding of a
serde_json::Value. - sign_
envelope_ hex - Convenience: sign an envelope (object) with a hex secret key.
- sign_
payload_ hex - Sign
payloadwith a hex-encoded 32-byte ed25519 secret key. - verify_
envelope_ hex - Convenience: verify a signed envelope (object) using a hex public key and hex signature; canonicalizes the envelope before verifying.
- verify_
signature_ hex - Verify an ed25519 signature over
payloadusing a hex-encoded public key.