pub fn set_identity<T: Config>(info: Box<IdentityInfo<T::MaxAdditionalFields>>)
Expand description

Set an account’s identity information and reserve the appropriate deposit.

If the account already has identity information, the deposit is taken as part payment for the new deposit.

The dispatch origin for this call must be Signed.

  • info: The identity information.

Emits IdentitySet if successful.

Complexity

  • O(X + X' + R)
    • where X additional-field-count (deposit-bounded and code-bounded)
    • where R judgements-count (registrar-count-bounded)

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::set_identity.