Struct miniscript::plan::LoggerAssetProvider
source · pub struct LoggerAssetProvider(/* private fields */);
Expand description
Wrapper around Assets
that logs every query and value returned
Trait Implementations§
source§impl AssetProvider<DefiniteDescriptorKey> for LoggerAssetProvider
impl AssetProvider<DefiniteDescriptorKey> for LoggerAssetProvider
source§fn provider_lookup_ecdsa_sig(&self, pk: &DefiniteDescriptorKey) -> bool
fn provider_lookup_ecdsa_sig(&self, pk: &DefiniteDescriptorKey) -> bool
Given a public key, look up an ECDSA signature with that key, return whether we found it
source§fn provider_lookup_tap_key_spend_sig(
&self,
pk: &DefiniteDescriptorKey
) -> Option<usize>
fn provider_lookup_tap_key_spend_sig( &self, pk: &DefiniteDescriptorKey ) -> Option<usize>
Lookup the tap key spend sig and return its size
source§fn provider_lookup_tap_leaf_script_sig(
&self,
pk: &DefiniteDescriptorKey,
leaf_hash: &TapLeafHash
) -> Option<usize>
fn provider_lookup_tap_leaf_script_sig( &self, pk: &DefiniteDescriptorKey, leaf_hash: &TapLeafHash ) -> Option<usize>
Given a public key and a associated leaf hash, look up a schnorr signature with that key
and return its size
source§fn provider_lookup_tap_control_block_map(
&self
) -> Option<&BTreeMap<ControlBlock, (ScriptBuf, LeafVersion)>>
fn provider_lookup_tap_control_block_map( &self ) -> Option<&BTreeMap<ControlBlock, (ScriptBuf, LeafVersion)>>
Obtain a reference to the control block for a ver and script
source§fn provider_lookup_raw_pkh_pk(&self, hash: &Hash) -> Option<PublicKey>
fn provider_lookup_raw_pkh_pk(&self, hash: &Hash) -> Option<PublicKey>
Given a raw
Pkh
, lookup corresponding bitcoin::PublicKey
source§fn provider_lookup_raw_pkh_x_only_pk(
&self,
hash: &Hash
) -> Option<XOnlyPublicKey>
fn provider_lookup_raw_pkh_x_only_pk( &self, hash: &Hash ) -> Option<XOnlyPublicKey>
Given a raw
Pkh
, lookup corresponding bitcoin::secp256k1::XOnlyPublicKey
source§fn provider_lookup_raw_pkh_ecdsa_sig(&self, hash: &Hash) -> Option<PublicKey>
fn provider_lookup_raw_pkh_ecdsa_sig(&self, hash: &Hash) -> Option<PublicKey>
Given a keyhash, look up the EC signature and the associated key.
Returns the key if a signature is found.
Even if signatures for public key Hashes are not available, the users
can use this map to provide pkh -> pk mapping which can be useful
for dissatisfying pkh.
source§fn provider_lookup_raw_pkh_tap_leaf_script_sig(
&self,
hash: &(Hash, TapLeafHash)
) -> Option<(XOnlyPublicKey, usize)>
fn provider_lookup_raw_pkh_tap_leaf_script_sig( &self, hash: &(Hash, TapLeafHash) ) -> Option<(XOnlyPublicKey, usize)>
Given a keyhash, look up the schnorr signature and the associated key.
Returns the key and sig len if a signature is found.
Even if signatures for public key Hashes are not available, the users
can use this map to provide pkh -> pk mapping which can be useful
for dissatisfying pkh.
source§fn provider_lookup_sha256(&self, hash: &Hash) -> bool
fn provider_lookup_sha256(&self, hash: &Hash) -> bool
Given a SHA256 hash, look up its preimage, return whether we found it
source§fn provider_lookup_hash256(&self, hash: &Hash) -> bool
fn provider_lookup_hash256(&self, hash: &Hash) -> bool
Given a HASH256 hash, look up its preimage, return whether we found it
source§fn provider_lookup_ripemd160(&self, hash: &Hash) -> bool
fn provider_lookup_ripemd160(&self, hash: &Hash) -> bool
Given a RIPEMD160 hash, look up its preimage, return whether we found it
source§fn provider_lookup_hash160(&self, hash: &Hash) -> bool
fn provider_lookup_hash160(&self, hash: &Hash) -> bool
Given a HASH160 hash, look up its preimage, return whether we found it
source§fn check_older(&self, s: Sequence) -> bool
fn check_older(&self, s: Sequence) -> bool
Assert whether a relative locktime is satisfied
source§fn check_after(&self, t: LockTime) -> bool
fn check_after(&self, t: LockTime) -> bool
Assert whether an absolute locktime is satisfied
Auto Trait Implementations§
impl RefUnwindSafe for LoggerAssetProvider
impl Send for LoggerAssetProvider
impl Sync for LoggerAssetProvider
impl Unpin for LoggerAssetProvider
impl UnwindSafe for LoggerAssetProvider
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more