pub trait RedStoneConfig {
type Environment: Environment;
// Required methods
fn config(&self) -> &Config;
fn crypto_mut(&mut self) -> &mut impl Crypto;
}Expand description
Configuration for the redstone protocol. Pluggable with custom environments and possible specialized crypto operations.
Required Associated Types§
Sourcetype Environment: Environment
type Environment: Environment
Environment in which we execute. Provides logging etc
Required Methods§
Sourcefn crypto_mut(&mut self) -> &mut impl Crypto
fn crypto_mut(&mut self) -> &mut impl Crypto
Crypto operations needed for address recovery.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.