Trait psbt::KeyType

source ·
pub trait KeyType: Copy + Ord + Eq + Hash + Debug + 'static {
    const STANDARD: &'static [Self];

    // Required methods
    fn unknown_unchecked(val: u8) -> Self;
    fn from_u8(val: u8) -> Self;
    fn into_u8(self) -> u8;
    fn has_key_data(self) -> bool;
    fn present_since(self) -> PsbtVer;
    fn deprecated_since(self) -> Option<PsbtVer>;
    fn is_required(self) -> bool;
    fn is_proprietary(self) -> bool;

    // Provided methods
    fn unknown(val: u8) -> Self { ... }
    fn to_u8(&self) -> u8 { ... }
    fn is_allowed(self, version: PsbtVer) -> bool { ... }
}

Required Associated Constants§

source

const STANDARD: &'static [Self]

Required Methods§

Provided Methods§

source

fn unknown(val: u8) -> Self

source

fn to_u8(&self) -> u8

source

fn is_allowed(self, version: PsbtVer) -> bool

Object Safety§

This trait is not object safe.

Implementors§

source§

impl KeyType for GlobalKey

source§

const STANDARD: &'static [Self] = _

source§

impl KeyType for InputKey

source§

const STANDARD: &'static [Self] = _

source§

impl KeyType for OutputKey

source§

const STANDARD: &'static [Self] = _