I am fairly new to Rust but I am trying to build a command line tool similar to OpenSSL written in Rust.
I am trying to implement a digital signature using Rust Crypto and the ecdsa crate. I already have a hashed file and my next steps would be as followed:
- Generate private and public key
- encrypt the hash value with the private key (that would be my signature)
Now I am not sure how to use the ecdsa crate. How can I generate a private key?