remove BoundTx::to_bytes

This commit is contained in:
Giacomo Pasini 2024-08-09 17:39:56 +02:00
parent 6dfceffc2d
commit 459c7fa2c4
No known key found for this signature in database
GPG Key ID: FC08489D2D895D4B

View File

@ -179,14 +179,6 @@ pub struct BoundTx {
pub bind: PartialTxInputWitness,
}
impl BoundTx {
pub fn to_bytes(&self) -> Vec<u8> {
let mut bytes = self.tx.to_bytes();
bytes.extend(self.bind.input.commit().to_bytes());
bytes
}
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub enum Tx {
Withdraw(Withdraw),