(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_sign_ed25519_pk_to_curve25519 — 將 Ed25519 公開金鑰轉換為 Curve25519 公開金鑰
$public_key
給定一個 Ed25519 公開金鑰,計算雙有理等價的 X25519 公開金鑰。
public_key
適用於 crypto_sign 函式的公開金鑰。
適用於 crypto_box 函式的公開金鑰。