-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
Summary
GetInfo already returns a digest field (SHA256 of the JSON-marshalled response). Clients should be able to send this digest as a header on subsequent API calls so arkd can detect when they're operating with stale server parameters.
Behavior
- Clients optionally attach an
X-Ark-Digestheader (orx-ark-digestgRPC metadata) to any API call. - If arkd sees the header and the digest doesn't match the current one, it returns a structured
DIGEST_MISMATCHerror (FailedPrecondition, code 48) with thecurrent_digestin metadata, telling
the client to re-fetchGetInfo. - If the header is absent, no validation occurs — completely client opt-in.
GetInfoitself is always exempt from validation (clients need it to obtain the digest).- Only public service methods (ArkService, IndexerService) are validated — admin/wallet calls are unaffected.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels