feat(cli): emit verified signed message events
What changed
Adds opt-in --include-signatures output to buzz messages get, messages thread, and messages search. The default output remains unchanged and signature-stripped.
Proof mode:
- parses every relay result as a complete NIP-01 event;
- verifies both the event id and Schnorr signature before output;
- emits exactly
{id,pubkey,kind,content,created_at,tags,sig}; - fails closed on malformed or unverifiable events without echoing message content in the error;
- preserves the complete envelope even with global
--format compact, because a partial event cannot be independently verified.
Why
The relay /query response contains signed events, but every agent-facing buzz messages read currently strips sig. A downstream approval broker therefore cannot distinguish a real owner-authored command from agent prose or a forged JSON object. The opt-in envelope allows an external verifier to bind an action to a cryptographically signed Buzz event without exposing any private key or changing normal chat reads.
No matching issue or PR was found.
Security
This adds only the public event signature. It does not read or emit BUZZ_PRIVATE_KEY, BUZZ_AUTH_TAG, HTTP authorization headers, provider credentials, or other environment values. Relay-only projection fields are omitted. Existing event tags are preserved because they are part of the signed NIP-01 preimage.
Verification
cargo test -p buzz-cli— 253 passedcargo clippy -p buzz-cli --all-targets -- -D warningscargo fmt --allgit diff --check