Function deepkey_csr::key_registration::revoke_key
source · pub fn revoke_key(
input: RevokeKeyInput,
) -> ExternResult<(ActionHash, KeyRegistration)>Expand description
Register a key delete for an existing app/key pair
§Example usage
let prior_key_registration = ActionHash::try_from("uhCkkzhwfnkYh7CWji2KpS2wO6YaKOKPQ4-kr4XGRBRRx9hitvOw9").unwrap();
// Assuming the default change rules are still in place
let revocation_authorization = vec![
(
0, // The index of the FDA authority
sign_raw( // Sign prior registration using FDA
agent_info()?.agent_initial_pubkey,
prior_key_registration.clone().into_inner()
)?
),
];
let key_revocation = KeyRevocation {
prior_key_registration,
revocation_authorization,
};
let result = deepkey_csr::key_registration::revoke_key(RevokeKeyInput {
key_revocation,
});