For AI agents: a documentation index is available at /llms.txt. A markdown version of this page is available at the same URL with .md appended (or via Accept: text/markdown).
Skip to main content

Get Ed25519 private key

After a user signs in, retrieve their Ed25519 private key from the sign-in response or by calling getEd25519PrivateKey(). Use this key with a compatible library to sign transactions on chains that use Ed25519. Never log or persist an unencrypted private key.

Usage

private void onLogin(Web3AuthResponse response)
{
var ed25519PrivateKey = response.ed25519PrivateKey;

// Use the Ed25519 private key with a compatible blockchain library
}

You can also retrieve the key from the active session:

var ed25519PrivateKey = web3Auth.getEd25519PrivateKey();
On this page