Converts an Ed25519 PUBLIC key to its X25519 (Montgomery) form.
Used in X3DH to convert the recipient's identity public key
(Ed25519) to X25519 for ECDH operations. Uses
@noble/curves ed25519.utils.toMontgomery() which accepts both
private and public keys.
Converts an Ed25519 PUBLIC key to its X25519 (Montgomery) form.
Used in X3DH to convert the recipient's identity public key (Ed25519) to X25519 for ECDH operations. Uses @noble/curves ed25519.utils.toMontgomery() which accepts both private and public keys.