feat(core): add grant primitives for device history

Grants are the capability a device issues so a known peer may reach it. The
issuer is the only party that can validate one, which is what makes consent
and revocation enforceable without the peer's cooperation.

Pure module: proof construction and constant-time verification bound to the
challenge and both endpoint ids, idle expiry renewed on use, and secrets
redacted in Debug output.
This commit is contained in:
2026-08-06 16:01:20 +02:00
parent 0388422318
commit 4cfee786fc
6 changed files with 578 additions and 0 deletions

1
Cargo.lock generated
View File

@@ -5227,6 +5227,7 @@ dependencies = [
"data-encoding",
"futures",
"futures-lite",
"getrandom 0.3.4",
"iroh",
"iroh-blobs",
"iroh-relay",