Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IPublicKeySafeDispatcherTrait

Fully qualified path: openzeppelin_interfaces::account::accounts::IPublicKeySafeDispatcherTrait

Part of the group: dispatchers

pub trait IPublicKeySafeDispatcherTrait<T>

Trait functions

get_public_key

Returns the current public key of the account.

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

fn get_public_key(self: T) -> Result<felt252, Array<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::IPublicKeySafeDispatcherTrait::set_public_key

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