Serialize with tag and compute content address: `blake3(0xE1 + secret + payload)`.
(&self)
| 71 | |
| 72 | /// Serialize with tag and compute content address: `blake3(0xE1 + secret + payload)`. |
| 73 | pub fn commit(&self) -> Address { |
| 74 | let mut buf = Vec::new(); |
| 75 | self.put_tagged(&mut buf); |
| 76 | Address::hash(&buf) |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | #[cfg(test)] |