Skip to content

Vout is identical to PrevOut #148

@luisschwab

Description

@luisschwab

One of these should be removed.

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

/// 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,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions