I need to generate a key pair that can be used to write the a besu (ethereum) private ledger. I wrote the following code but the architect says this will probably not work with ethereum.
Here's my code:
import * as keypair from 'keypair'; import * as forge from 'node-forge'; const pair = keypair(); const publicKey = forge.pki.publicKeyFromPem(pair.public); const privateKey = forge.pki.privateKeyFromPem(pair.private);
Not making excuses, I don't know where to begin or what to even search on. What do I need to generate to have acceptable keys for use with ethereum?