Function pallet_session::pallet::dispatchables::set_keys
source · pub fn set_keys<T: Config>(keys: T::Keys, proof: Vec<u8>)
Expand description
Sets the session key(s) of the function caller to keys
.
Allows an account to set its session key prior to becoming a validator.
This doesn’t take effect until the next session.
The dispatch origin of this function must be signed.
§Complexity
O(1)
. Actual cost depends on the number of length ofT::Keys::key_ids()
which is fixed.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set_keys
.