Create a key pair from a secret key
(secret: SecretKey)
| 219 | |
| 220 | /// Create a key pair from a secret key |
| 221 | pub fn from_secret_key(secret: SecretKey) -> Self { |
| 222 | let public = secret.public_key(); |
| 223 | KeyPair { secret, public } |
| 224 | } |
| 225 | |
| 226 | /// Sign a message with the secret key |
| 227 | pub fn sign(&self, message: &[u8]) -> [u8; 64] { |
nothing calls this directly
no test coverage detected