# Get Ed25519 private key

> Web3Auth iOS SDK - getEd25519PrivKey | 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

```swift
let privateKey = web3Auth.getEd25519PrivKey();
```
