pub fn delete_msa_public_key<T: Config>(public_key_to_delete: T::AccountId)Expand description
Remove a key associated with an MSA by expiring it at the current block.
§Remarks
- Removal of key deletes the association of the key with the MSA.
- The key can be re-added to same or another MSA if needed.
§Events
§Errors
Error::InvalidSelfRemoval-originandkeyare the same.Error::NotKeyOwner-origindoes not own the MSA ID associated withkey.Error::NoKeyExists-originorkeyare not associated withorigin’s MSA ID.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::delete_msa_public_key.