Skip to content

Commit 5cd6fd1

Browse files
committed
updater: add method psbt
1 parent 91c9084 commit 5cd6fd1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/updater.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ impl PsbtUpdater {
128128
Ok(())
129129
}
130130

131+
/// Return a reference to the PSBT
132+
pub fn psbt(&self) -> &Psbt {
133+
&self.psbt
134+
}
135+
131136
/// Add a [`bip32::Xpub`] and key origin to the psbt global xpubs
132137
pub fn add_global_xpub(&mut self, xpub: bip32::Xpub, origin: (Fingerprint, DerivationPath)) {
133138
self.psbt.xpub.insert(xpub, origin);

0 commit comments

Comments
 (0)