Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IPublicKeyDispatcherTrait

Fully qualified path: openzeppelin_interfaces::account::accounts::IPublicKeyDispatcherTrait

Part of the group: dispatchers

pub trait IPublicKeyDispatcherTrait<T>

Trait functions

get_public_key

Returns the current public key of the account.

Fully qualified path: openzeppelin_interfaces::account::accounts::IPublicKeyDispatcherTrait::get_public_key

fn get_public_key(self: T) -> felt252

set_public_key

Sets the public key of the account to new_public_key.

Emits both an OwnerRemoved and an OwnerAdded event.

Fully qualified path: openzeppelin_interfaces::account::accounts::IPublicKeyDispatcherTrait::set_public_key

fn set_public_key(self: T, new_public_key: felt252, signature: Span<felt252>)