I have Edward curve key parameters - x, d and curve. How can I rebuild PublicKey/Private keys using bouncy castle?
Bouncy castle - how to rebuild Public key from EdDSA
418 views Asked by Naimisha Jogi At
1
I have Edward curve key parameters - x, d and curve. How can I rebuild PublicKey/Private keys using bouncy castle?
If
x
is your public key,d
is your private key and curve is Curve25519 or Curve448, then you can simply do the following:This is an example of getting Ed25519 public/private keys, for X25519, Ed448, or X448 you just need to use their respective classes instead.