pub enum KeyGenerator {
ECDSAKeyGenerator,
BLSKeyGenerator,
}Variants§
Implementations§
Source§impl KeyGenerator
impl KeyGenerator
Sourcepub fn generate(
self,
num_keys: u32,
output_dir: Option<String>,
) -> Result<(), EigenKeyCliError>
pub fn generate( self, num_keys: u32, output_dir: Option<String>, ) -> Result<(), EigenKeyCliError>
Generates a number of private keys in the given directory.
§Arguments
num_keys- The number of keys to generate.output_dir- The directory where the key files are generated.
Sourcepub fn random_ecdsa_key() -> Vec<u8> ⓘ
pub fn random_ecdsa_key() -> Vec<u8> ⓘ
Sourcepub fn generate_random_password() -> String
pub fn generate_random_password() -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyGenerator
impl RefUnwindSafe for KeyGenerator
impl Send for KeyGenerator
impl Sync for KeyGenerator
impl Unpin for KeyGenerator
impl UnwindSafe for KeyGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.