Archived Content from Web3Auth Community
This topic was originally posted by chrisbkarani on 6/1/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.
Using CustomAuth and tkey how can i derive ed25519 private key.
Hey @chrisbkarani
You can use the below code snippet to convert the SECP256K1 keys returned from CustomAuth to convert into the ED25519 key.
import { getED25519Key } from "@toruslabs/openlogin-ed25519";
const ed25519key = getED25519Key(privateKey).sk.toString("hex");