Skip to content

Commit

Permalink
psbt: add Output::vout
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Dec 27, 2023
1 parent af43c11 commit b066589
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions psbt/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,9 @@ impl Output {
#[inline]
pub fn index(&self) -> usize { self.index }

#[inline]
pub fn vout(&self) -> Vout { Vout::from_u32(self.index as u32) }

pub fn terminal_derivation(&self) -> Option<Terminal> {
if self.bip32_derivation.is_empty() && self.tap_bip32_derivation.is_empty() {
return None;
Expand Down

0 comments on commit b066589

Please sign in to comment.