1

I am implementing a REST API in Go for a web3 client that performs authentication by validating a private key signature. Is there some way I can generate fake but valid private/public key pairs for injecting into test methods?

1
  • Any 32 random bytes can be an ed25519 secret key, so feel free to just generate 32 random bytes and create a keypair from that!
    – Jon C
    Commented Jul 22 at 18:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.