bwk 0.0.8

Bitcoin wallet kit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use miniscript::bitcoin::{self, Sequence, TxOut};
use serde::{Deserialize, Serialize};

use crate::account::AddrAccount;

#[derive(Debug, Clone, Serialize, Deserialize)]
/// A struct that represents a coin in a Bitcoin transaction.
///
/// This struct contains information about the transaction output,
/// the outpoint, the sequence number, and the derivation path of the coin.
pub struct Coin {
    pub txout: TxOut,
    pub outpoint: bitcoin::OutPoint,
    pub sequence: Sequence,
    pub coin_path: (AddrAccount, u32),
}