MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / set_delegator_epoch

Method set_delegator_epoch

atomic-remote/src/storage.rs:519–521  ·  view source on GitHub ↗

Invalidate every grant the caller has ever issued, to every agent. The key-compromise button. If your signing key leaks, an attacker can mint grants nobody knows about and there is no list to revoke — this is the one action that covers them.

(&self)

Source from the content-addressed store, hash-verified

517 /// mint grants nobody knows about and there is no list to revoke — this is
518 /// the one action that covers them.
519 pub async fn set_delegator_epoch(&self) -> Result<EpochInfo, RemoteError> {
520 self.post_empty("/delegations/epoch").await
521 }
522
523 /// Check whether a delegation is still good.
524 ///

Callers 1

revoke_everythingMethod · 0.80

Calls 1

post_emptyMethod · 0.80

Tested by

no test coverage detected