pub fn to_bytes(&self) -> Vec<u8> {
        let mut buf = Vec::with_capacity(self.serialized_size());
        self.encode(&mut buf);
        buf
    }
/// Serializes the tx into a byte array.
Serializes the tx into a byte array.
Serializes the tx into a byte array .
pub fn to_bytes(&self) -> Vec<u8> {
        let mut buf = Vec::with_capacity(self.serialized_size());
        self.encode(&mut buf);
        buf
    }
pub fn to_bytes ( & self ) -> Vec < u8 > { let mut buf = Vec :: with_capacity ( self . serialized_size ( ) ) ; self . encode ( & mut buf ) ; buf }
Serializes the tx into a byte array.
Serializes the tx into a byte array .
&self
&self