pub trait KeypairExt {
// Required methods
fn from_str(value: &str) -> Result<Keypair, UserError>;
fn account_id(&self) -> AccountId;
}Expand description
Extension helpers for building and inspecting sr25519 keypairs.
Required Methods§
Sourcefn account_id(&self) -> AccountId
fn account_id(&self) -> AccountId
Derives the associated AccountId from the public key.
§Returns
Returns the AccountId corresponding to this keypair’s public key.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".