Get the corresponding public key
(&self)
| 182 | |
| 183 | /// Get the corresponding public key |
| 184 | pub fn public_key(&self) -> PublicKey { |
| 185 | PublicKey(self.0.verifying_key()) |
| 186 | } |
| 187 | |
| 188 | /// Sign a message |
| 189 | pub fn sign(&self, message: &[u8]) -> [u8; 64] { |