1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
use crate::{Address, Amount, Covenant};

#[derive(Clone, PartialEq, Eq, Debug)]
pub struct Output {
    value: Amount,
    address: Address,
    covenant: Covenant,
}

//TODO get size, is_dust, format, equal + peq, to hex from hex, to buffer, from buffer.
impl Output {
    pub fn is_unspendable(&self) -> bool {
        self.address.is_unspendable() | self.covenant.is_unspendable()
    }
}