Returns the Merkle root
(&self)
| 79 | |
| 80 | // Returns the Merkle root |
| 81 | pub fn root(&self) -> [u8; 32] { |
| 82 | self.nodes[self.nodes.len() - 1][0] |
| 83 | } |
| 84 | |
| 85 | /// Constructs a "mid-state" Merkle tree, designed for generating secure SPV (Simplified Payment Verification) proofs. |
| 86 | /// This structure, when used with the corresponding `calculate_root_with_merkle_proof` (or `BlockInclusionProof::get_root`) method, |