# Ed25519 private key

> Web3Auth Android SDK - getEd25519PrivKey Function | Embedded Wallets

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

## Usage

```kotlin
val privateKey = web3Auth.getEd25519PrivKey()
```

:::note

Web3Auth supports two widely used cryptographic curves, Secp256k1 and Ed25519, making it chain-agnostic and compatible with multiple blockchain networks. [Learn more about how to connect different blockchains](/embedded-wallets/connect-blockchain).

:::
