3

I'm looking for a lean rust crate to programatically generate Solana key pairs. Something like solana-keygen but as a library.

1 Answer 1

3

Yes, the solana_sdk crate provides this

use solana_sdk::signature::{Keypair};

fn main() {
    let wallet = Keypair::new();
}
1
  • 2
    admittedly, that class lives in an unintuitive module :)
    – trent.sol
    Jul 29 at 22:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.