Encode the identity ID as base32.
(&self)
| 64 | |
| 65 | /// Encode the identity ID as base32. |
| 66 | pub fn to_base32(&self) -> String { |
| 67 | data_encoding::BASE32_NOPAD.encode(&self.0) |
| 68 | } |
| 69 | |
| 70 | /// Decode an identity ID from base32. |
| 71 | pub fn from_base32(s: &str) -> Result<Self, IdentityError> { |