psrgbt

Trait RgbOutExt

Source
pub trait RgbOutExt {
    // Required methods
    fn rgb_velocity_hint(&self) -> Option<VelocityHint>;
    fn set_rgb_velocity_hint(&mut self, hint: VelocityHint) -> bool;
}

Required Methods§

Source

fn rgb_velocity_hint(&self) -> Option<VelocityHint>

Returns hint for the velocity of the state which may be assigned to the provided output.

We do not error on invalid data in order to support future update of this proprietary key to a standard one. In this case, the invalid data will be filtered at the moment of PSBT deserialization and this function will return None only in situations when the key is absent.

Source

fn set_rgb_velocity_hint(&mut self, hint: VelocityHint) -> bool

Adds hint for the velocity of the state which may be assigned to the PSBT output.

§Returns

false, if a velocity hint was already present in the input and true otherwise.

Implementors§