redstone

Trait RedStoneConfig

Source
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§

Source

type Environment: Environment

Environment in which we execute. Provides logging etc

Required Methods§

Source

fn config(&self) -> &Config

Returns config for payload decoding and validation.

Source

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.

Implementors§