PHP.nl

sodium_crypto_sign_ed25519_sk_to_curve25519

sodium_crypto_sign_ed25519_sk_to_curve25519

Convert an Ed25519 secret key to a Curve25519 secret key

string **sodium_crypto_sign_ed25519_sk_to_curve25519** string $secret_key

Given an Ed25519 secret key, calculate the birationally equivalent X25519 secret key.

secret_keySecret key suitable for the crypto_sign functions.

Secret key suitable for the crypto_box functions.