Skip to main content

Ed25519 Private Key

To retrieve the Ed25519 private key of the user, use the getEd25519PrivateKey method. This private key can be used to sign transactions on Solana, Near, Algorand, and other chains that use the ed25519 curve.

The method throws if no user session is found or if the key is unavailable.

Usage

let ed25519PrivateKey = try web3Auth.getEd25519PrivateKey()
On this page