Function pallet_identity::pallet::dispatchables::set_username_for
source · pub fn set_username_for<T: Config>(
who: <<T as Config>::Lookup as StaticLookup>::Source,
username: Vec<u8>,
signature: Option<T::OffchainSignature>,
use_allocation: bool,
)
Expand description
Set the username for who
. Must be called by a username authority.
If use_allocation
is set, the authority must have a username allocation available to
spend. Otherwise, the authority will need to put up a deposit for registering the
username.
Users can either pre-sign their usernames or accept them later.
Usernames must:
- Only contain lowercase ASCII characters or digits.
- When combined with the suffix of the issuing authority be less than the
MaxUsernameLength
.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set_username_for
.