Function did::pallet::dispatchables::set_authentication_key
source · pub fn set_authentication_key<T: Config>(
new_key: DidVerificationKey<AccountIdOf<T>>
)
Expand description
Update the DID authentication key.
The old key is deleted from the set of public keys if it is not used in any other part of the DID. The new key is added to the set of public keys.
The dispatch origin must be a DID origin proxied via the
submit_did_call
extrinsic.
Emits DidUpdated
.
Weight: O(1)
- Reads: [Origin Account], Did
- Writes: Did
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set_authentication_key
.