Create a new signer from a keypair.
(keypair: &'a KeyPair)
| 152 | |
| 153 | /// Create a new signer from a keypair. |
| 154 | pub fn new(keypair: &'a KeyPair) -> Self { |
| 155 | Self { |
| 156 | secret_key: &keypair.secret, |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | /// Sign a message. |
| 161 | pub fn sign(&self, message: &[u8]) -> Signature { |
nothing calls this directly
no outgoing calls
no test coverage detected