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