diff --git a/src/api.rs b/src/api.rs index 2cd72d02..c5fa6e62 100644 --- a/src/api.rs +++ b/src/api.rs @@ -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 { @@ -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, + pub prevout: Option, /// The ScriptSig authorizes spending this input. pub scriptsig: ScriptBuf, /// The Witness that authorizes spending this input, if this is a SegWit spend.