Create a key pair from a secret key
(secret: SecretKey)
| 177 | |
| 178 | /// Create a key pair from a secret key |
| 179 | pub fn from_secret_key(secret: SecretKey) -> Self { |
| 180 | let public = secret.public_key(); |
| 181 | KeyPair { secret, public } |
| 182 | } |
| 183 | |
| 184 | /// Sign a message with the secret key |
| 185 | pub fn sign(&self, message: &[u8]) -> [u8; 64] { |
nothing calls this directly
no test coverage detected