I'm trying to implement public key encryption that support key pairs generated by different libraries:
- Curve25519 - libsodium
- Ed25519 - Google Tink
- 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.