Generate a private/public keypair ```rust use utils::crypto::keypair; let (private_key, public_key) = keypair(); ```
()
| 82 | /// let (private_key, public_key) = keypair(); |
| 83 | /// ``` |
| 84 | pub fn keypair() -> (SecretKey, PublicKey) { |
| 85 | generate_keypair(&mut rand::thread_rng()) |
| 86 | } |
| 87 | |
| 88 | /// Convert a public key into an address using the last 20 bytes of the hash |
| 89 | /// |
no outgoing calls