Skip to content

Commit

Permalink
Implement LoggerAssetProvider for new methods
Browse files Browse the repository at this point in the history
  • Loading branch information
danielabrozzoni committed Aug 18, 2023
1 parent 14833b0 commit 38bcc84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ impl AssetProvider<DefiniteDescriptorKey> for LoggerAssetProvider {
impl_log_method!(provider_lookup_ecdsa_sig, pk: &DefiniteDescriptorKey, -> bool);
impl_log_method!(provider_lookup_tap_key_spend_sig, pk: &DefiniteDescriptorKey, -> Option<usize>);
impl_log_method!(provider_lookup_tap_leaf_script_sig, pk: &DefiniteDescriptorKey, leaf_hash: &TapLeafHash, -> Option<usize>);
impl_log_method!(provider_lookup_tap_control_block_map, -> Option<&BTreeMap<ControlBlock, (bitcoin::ScriptBuf, LeafVersion)>>);
impl_log_method!(provider_lookup_raw_pkh_pk, hash: &hash160::Hash, -> Option<bitcoin::PublicKey>);
impl_log_method!(provider_lookup_raw_pkh_x_only_pk, hash: &hash160::Hash, -> Option<XOnlyPublicKey>);
impl_log_method!(provider_lookup_raw_pkh_ecdsa_sig, hash: &hash160::Hash, -> Option<bitcoin::PublicKey>);
impl_log_method!(provider_lookup_raw_pkh_tap_leaf_script_sig, hash: &(hash160::Hash, TapLeafHash), -> Option<(XOnlyPublicKey, usize)>);
impl_log_method!(provider_lookup_sha256, hash: &sha256::Hash, -> bool);
impl_log_method!(provider_lookup_hash256, hash: &hash256::Hash, -> bool);
impl_log_method!(provider_lookup_ripemd160, hash: &ripemd160::Hash, -> bool);
Expand Down

0 comments on commit 38bcc84

Please sign in to comment.