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 of T::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.