0
$\begingroup$

I'm trying to implement public key encryption that support key pairs generated by different libraries:

  • Curve25519 - libsodium cryptoBoxKeypair()
  • Ed25519 - Google Tink Ed25519Sign.KeyPair.newKeyPair()
  • sr25519 - Polkadot Schnorrkel over Ristretto

I'm using libsodium cryptoBoxSealOpenEasy() for encryption that is works, obviously, with Curve25519 and with Ed25519 after conversion with libsodium convertKeyPairEd25519ToCurve25519(). But I'm stuck with sr25519 - don't know how to convert it to Curve25519.

$\endgroup$
1

Your Answer

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

Browse other questions tagged or ask your own question.