pub struct SecretModelFactory {
pub bft: Option<Bft>,
pub genesis: Option<GenesisPraos>,
}
Fields§
§bft: Option<Bft>
§genesis: Option<GenesisPraos>
Implementations§
source§impl SecretModelFactory
impl SecretModelFactory
pub fn bft(signing_key: SigningKey<Ed25519>) -> Self
pub fn genesis( signing_key: SigningKey<SumEd25519_12>, vrf_key: SigningKey<RistrettoGroup2HashDh>, node_id: &str ) -> Self
pub fn write_to_file_if_defined( &self, temp_dir: &impl PathChild ) -> Option<PathBuf>
pub fn is_defined(&self) -> bool
Trait Implementations§
source§impl Clone for SecretModelFactory
impl Clone for SecretModelFactory
source§fn clone(&self) -> SecretModelFactory
fn clone(&self) -> SecretModelFactory
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SecretModelFactory
impl Debug for SecretModelFactory
source§impl Default for SecretModelFactory
impl Default for SecretModelFactory
source§fn default() -> SecretModelFactory
fn default() -> SecretModelFactory
Returns the “default value” for a type. Read more
source§impl Into<NodeSecret> for SecretModelFactory
impl Into<NodeSecret> for SecretModelFactory
source§fn into(self) -> NodeSecret
fn into(self) -> NodeSecret
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl RefUnwindSafe for SecretModelFactory
impl Send for SecretModelFactory
impl Sync for SecretModelFactory
impl Unpin for SecretModelFactory
impl UnwindSafe for SecretModelFactory
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request