link
This commit is contained in:
parent
04481b3b8d
commit
c2f9394dfd
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ impl Keypair {
|
||||||
///
|
///
|
||||||
/// Note that this method is very slow in debug mode. To make it faster, follow
|
/// Note that this method is very slow in debug mode. To make it faster, follow
|
||||||
/// instructions in the RSA crate's readme.
|
/// instructions in the RSA crate's readme.
|
||||||
/// https://github.com/RustCrypto/RSA/blob/master/README.md
|
/// <https://github.com/RustCrypto/RSA/blob/master/README.md>
|
||||||
pub fn generate_actor_keypair() -> Result<Keypair, Error> {
|
pub fn generate_actor_keypair() -> Result<Keypair, Error> {
|
||||||
let mut rng = rand::thread_rng();
|
let mut rng = rand::thread_rng();
|
||||||
let rsa = RsaPrivateKey::new(&mut rng, 2048)?;
|
let rsa = RsaPrivateKey::new(&mut rng, 2048)?;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue