Trait OwnerProvider

Source
pub trait OwnerProvider {
    type Key: DeriveSet<Legacy = Self::Key, Compr = Self::Key, XOnly = Self::Key> + DeriveLegacy + DeriveCompr + DeriveXOnly;
    type UtxoSet: UtxoSet;

    // Required methods
    fn descriptor(&self) -> &RgbDescr<Self::Key>;
    fn utxos(&self) -> &Self::UtxoSet;
    fn descriptor_mut(&mut self) -> &mut RgbDescr<Self::Key>;
    fn utxos_mut(&mut self) -> &mut Self::UtxoSet;
}

Required Associated Types§

Source

type Key: DeriveSet<Legacy = Self::Key, Compr = Self::Key, XOnly = Self::Key> + DeriveLegacy + DeriveCompr + DeriveXOnly

Source

type UtxoSet: UtxoSet

Required Methods§

Source

fn descriptor(&self) -> &RgbDescr<Self::Key>

Source

fn utxos(&self) -> &Self::UtxoSet

Source

fn descriptor_mut(&mut self) -> &mut RgbDescr<Self::Key>

Source

fn utxos_mut(&mut self) -> &mut Self::UtxoSet

Implementors§

Source§

impl OwnerProvider for FileHolder

Available on crate feature fs only.
Source§

impl<K, U> OwnerProvider for Holder<K, U>
where K: DeriveSet<Legacy = K, Compr = K, XOnly = K> + DeriveLegacy + DeriveCompr + DeriveXOnly, U: UtxoSet,

Source§

type Key = K

Source§

type UtxoSet = U

Source§

impl<K, U> OwnerProvider for MultiHolder<K, U>
where K: DeriveSet<Legacy = K, Compr = K, XOnly = K> + DeriveLegacy + DeriveCompr + DeriveXOnly, U: UtxoSet,

Source§

type Key = K

Source§

type UtxoSet = U