Encode the public key as base32
(&self)
| 44 | |
| 45 | /// Encode the public key as base32 |
| 46 | pub fn to_base32(&self) -> String { |
| 47 | data_encoding::BASE32_NOPAD.encode(self.as_bytes()) |
| 48 | } |
| 49 | |
| 50 | /// Decode a public key from base32 |
| 51 | pub fn from_base32(s: &str) -> Result<Self, IdentityError> { |