Returns the transaction id, in big-endian byte order. One must be careful when dealing with Bitcoin transaction ids, as they are little-endian in the Bitcoin protocol.
(&self)
| 27 | /// Returns the transaction id, in big-endian byte order. One must be careful when dealing with |
| 28 | /// Bitcoin transaction ids, as they are little-endian in the Bitcoin protocol. |
| 29 | pub fn txid(&self) -> [u8; 32] { |
| 30 | let mid_state = self.mid_state_txid(); |
| 31 | calculate_sha256(&mid_state) |
| 32 | } |
| 33 | |
| 34 | /// Returns the first digest of the transaction to be used in SPV |
| 35 | pub fn mid_state_txid(&self) -> [u8; 32] { |