use amplify::confinement::SmallBlob;
use bp::Outpoint;
use strict_encoding::{StrictDeserialize, StrictSerialize};
use super::LIB_NAME_RGB_CONTRACT;
#[derive(Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug, From)]
#[derive(StrictType, StrictDumb, StrictEncode, StrictDecode)]
#[strict_type(lib = LIB_NAME_RGB_CONTRACT, dumb = ProofOfReserves::new(strict_dumb!(), strict_dumb!()))]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize), serde(crate = "serde_crate"))]
pub struct ProofOfReserves {
pub utxo: Outpoint,
pub proof: SmallBlob,
}
impl StrictSerialize for ProofOfReserves {}
impl StrictDeserialize for ProofOfReserves {}
impl ProofOfReserves {
pub fn new(utxo: Outpoint, proof: SmallBlob) -> ProofOfReserves {
ProofOfReserves { utxo, proof }
}
}