Returns the address as a lowercase hexadecimal string.
(&self)
| 29 | } |
| 30 | /// Returns the address as a lowercase hexadecimal string. |
| 31 | pub fn hex(&self) -> String { |
| 32 | self.hash.to_hex().as_str().to_owned() |
| 33 | } |
| 34 | /// Returns the raw 32-byte digest. |
| 35 | pub fn as_bytes(&self) -> &[u8; 32] { |
| 36 | self.hash.as_bytes() |
no outgoing calls