Trait ForcePublicKeyManager

Source
pub trait ForcePublicKeyManager: AccessControllable {
    // Required methods
    fn force_add_public_keys(
        &mut self,
        public_keys: HashMap<AccountId, HashSet<PublicKey>>,
    );
    fn force_remove_public_keys(
        &mut self,
        public_keys: HashMap<AccountId, HashSet<PublicKey>>,
    );
}

Required Methods§

Source

fn force_add_public_keys( &mut self, public_keys: HashMap<AccountId, HashSet<PublicKey>>, )

Registers or re-activates public_key under the user account_id.

NOTE: MUST attach 1 yⓃ for security purposes.

Source

fn force_remove_public_keys( &mut self, public_keys: HashMap<AccountId, HashSet<PublicKey>>, )

Deactivate public_key from the user account_id, i.e. this key can’t be used to make any actions unless it’s re-created.

NOTE: MUST attach 1 yⓃ for security purposes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§