Skip to main content

Creator

Trait Creator 

Source
pub trait Creator: Debug {
    // Required methods
    fn create(
        &self,
        codes: Option<Vec<&str>>,
        count: Option<usize>,
        code: Option<&str>,
        pidx: Option<usize>,
        ridx: Option<usize>,
        kidx: Option<usize>,
        transferable: Option<bool>,
        temp: Option<bool>,
    ) -> Vec<Signer>;
    fn salt(&self) -> String;
    fn stem(&self) -> String;
    fn tier(&self) -> Option<&Tiers>;
}
Expand description

Creator trait defines the interface for key pair creation

Required Methods§

Source

fn create( &self, codes: Option<Vec<&str>>, count: Option<usize>, code: Option<&str>, pidx: Option<usize>, ridx: Option<usize>, kidx: Option<usize>, transferable: Option<bool>, temp: Option<bool>, ) -> Vec<Signer>

Create signers based on parameters

Source

fn salt(&self) -> String

Get the salt value

Source

fn stem(&self) -> String

Get the stem value

Source

fn tier(&self) -> Option<&Tiers>

Get the tier value

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§