Function did::pallet::dispatchables::set_delegation_key
source · pub fn set_delegation_key<T: Config>(
new_key: DidVerificationKey<AccountIdOf<T>>
)
Expand description
Set or update the DID delegation key.
If an old key existed, it 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_delegation_key
.