[][src]Trait lnpbp::bp::psbt::ProprietaryKeyMap

pub trait ProprietaryKeyMap {
    fn proprietary_key<T>(
        &self,
        vendor: Vec<u8>,
        subtype: impl Into<u8>,
        key: Vec<u8>
    ) -> Option<Result<T, Error>>
    where
        T: StrictDecode<Error = Error>
;
fn insert_proprietary_key(
        &mut self,
        vendor: Vec<u8>,
        subtype: impl Into<u8>,
        key: Vec<u8>,
        value: &impl StrictEncode
    ) -> bool; }

Required methods

fn proprietary_key<T>(
    &self,
    vendor: Vec<u8>,
    subtype: impl Into<u8>,
    key: Vec<u8>
) -> Option<Result<T, Error>> where
    T: StrictDecode<Error = Error>, 

fn insert_proprietary_key(
    &mut self,
    vendor: Vec<u8>,
    subtype: impl Into<u8>,
    key: Vec<u8>,
    value: &impl StrictEncode
) -> bool

Loading content...

Implementors

impl<M> ProprietaryKeyMap for M where
    M: Map
[src]

Loading content...