Encode the identity ID as base32.
(&self)
| 70 | |
| 71 | /// Encode the identity ID as base32. |
| 72 | pub fn to_base32(&self) -> String { |
| 73 | data_encoding::BASE32_NOPAD.encode(&self.0) |
| 74 | } |
| 75 | |
| 76 | /// Decode an identity ID from base32. |
| 77 | pub fn from_base32(s: &str) -> Result<Self, IdentityError> { |