From a12e7c73b685a655de73f5bd68aeb594074dfb4b Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Tue, 5 Apr 2022 22:46:26 +0200 Subject: [PATCH] Implement From for TaprootBuilder --- src/util/psbt/map/output.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/psbt/map/output.rs b/src/util/psbt/map/output.rs index 3842bb23..483ea8ba 100644 --- a/src/util/psbt/map/output.rs +++ b/src/util/psbt/map/output.rs @@ -125,6 +125,13 @@ impl PartialEq for TapTree { impl Eq for TapTree {} +impl From for TaprootBuilder { + #[inline] + fn from(tree: TapTree) -> Self { + tree.into_builder() + } +} + impl TapTree { /// Gets the inner node info as the builder is finalized. pub fn node_info(&self) -> &NodeInfo {