Files
MeshCore-mqtt-observer/scripts
agessaman 5445c2f8f1 feat(poll): sign JSON claims with the node key
A claim naming its analyzer (poll_url) now carries "sig", an Ed25519
signature by the node key over a field-built message:

  corescope-claim/v1|<origin_id>|<poll_url>|<timestamp>|<sorted node_ids>

so a receiver can check that the claim came from origin_id and names that
analyzer and target list, even after a relay re-encodes the JSON. A claim
whose signature fails its own check is not sent and retries after 60 s.

- poll_url is left out when the host has a byte outside [a-z0-9.:[]-]
- the signed message is built in the claim buffer, off the loop stack
- kClaimJsonMax 3328, sized for a fully escaped policy version
- a claim result from before a poll.url change no longer updates the new
  analyzer's claim timers
- scripts/verify_poll_claim.py: reference verifier with a firmware-signed
  test vector; CI installs cryptography for it
2026-11-28 15:21:08 -08:00
..