Function pallet_msa::pallet::dispatchables::delete_msa_public_key
source · 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
-origin
andkey
are the same.Error::NotKeyOwner
-origin
does not own the MSA ID associated withkey
.Error::NoKeyExists
-origin
orkey
are 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
.