Trait lightning_signer::policy::validator::ValidatorFactory[][src]

pub trait ValidatorFactory: Send + Sync {
    fn make_validator(&self, channel: &Channel) -> Box<dyn Validator>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
;
fn make_validator_phase1(
        &self,
        channel: &Channel,
        channel_value_sat: u64
    ) -> Box<dyn Validator>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
; }

Required methods

fn make_validator(&self, channel: &Channel) -> Box<dyn Validator>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
[src]

fn make_validator_phase1(
    &self,
    channel: &Channel,
    channel_value_sat: u64
) -> Box<dyn Validator>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
[src]

Loading content...

Implementors

impl ValidatorFactory for SimpleValidatorFactory[src]

fn make_validator_phase1(
    &self,
    channel: &Channel,
    channel_value_sat: u64
) -> Box<dyn Validator>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
[src]

In phase 1 we don’t have the channel value populated in the Channel object, so supply it separately

fn make_validator(&self, channel: &Channel) -> Box<dyn Validator>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
[src]

Loading content...