pub fn hash(&mut self) -> Hash256 {
        let mut b = Vec::with_capacity(self.size());
        self.write(&mut b, &mut ()).unwrap();
        sha256d(&b)
    }
/// Calculates the hash of the transaction also known as the txid
Calculates the hash of the transaction also known as the txid
Calculates the hash of the transaction also known as the txid
pub fn hash(&mut self) -> Hash256 {
        let mut b = Vec::with_capacity(self.size());
        self.write(&mut b, &mut ()).unwrap();
        sha256d(&b)
    }
pub fn hash ( & mut self ) -> Hash256 { let mut b = Vec :: with_capacity ( self . size ( ) ) ; self . write ( & mut b , & mut ( ) ) . unwrap ( ) ; sha256d ( & b ) }
Calculates the hash of the transaction also known as the txid
Calculates the hash of the transaction also known as the txid
&mut self
&mut self