Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ pub use bitcoin::{
Wtxid,
};

/// Information about a previous output.
#[derive(Deserialize, Clone, Debug, PartialEq, Eq)]
pub struct PrevOut {
/// The value of the previous output, in satoshis.
pub value: u64,
/// The ScriptPubKey that the previous output is locked to, as a [`ScriptBuf`].
pub scriptpubkey: ScriptBuf,
}

/// Information about an input from a [`Transaction`].
#[derive(Deserialize, Clone, Debug, PartialEq, Eq)]
pub struct Vin {
Expand All @@ -35,7 +26,7 @@ pub struct Vin {
pub vout: u32,
/// The previous output amount and ScriptPubKey.
/// `None` if this is a coinbase input.
pub prevout: Option<PrevOut>,
pub prevout: Option<Vout>,
/// The ScriptSig authorizes spending this input.
pub scriptsig: ScriptBuf,
/// The Witness that authorizes spending this input, if this is a SegWit spend.
Expand Down
Loading