Retrieving ed25519 Key

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");