pub trait SecurityExt<AccountId, BlockNumber> {
    fn is_chain_running() -> bool;
    fn get_current_block_count() -> BlockNumber;
    fn get_unique_id(account_id: AccountId) -> Hash;
}

Required Methods§

Make sure the chain is running.

Get the real block count processed when the chain was running. (Maintenance mode blocks are not calculated)

Generates a 256-bit unique hash from an AccountId and the internal (auto-incrementing) Nonce to prevent replay attacks

Implementors§