Skip to content

Extend ProbeRequest/ProbeResponse with content-query fields and signatures #318

Closed

Description

@alpergundogdu

Context

ADRs 001 and 005 specify that cdn/probe/v1 is used for content availability queries, not just latency probing. The current implementation only supports identity/rate probing.

Missing fields

ProbeRequest

  • hash: [u8; 32] — BLAKE3 hash of the blob being queried

ProbeResponse (additions)

  • has_blob: bool — whether the node currently holds this hash
  • total_bytes: u64 — blob size (0 if not held)
  • signature: Vec<u8> — Ed25519 signature over {hash, has_blob, rate_per_mb, timestamp_us}
  • slash_sig: Vec<u8> — EIP-712 signature for on-chain phantom-announcement slashing evidence

Behavior changes

  • Handler must check CacheEngine::has(hash) before responding
  • Signed response enables slashing evidence if node claims has_blob:true then refuses to serve
  • Probe hold mechanism: node must not evict a blob within probe_hold_duration of signing has_blob:true

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions