Skip to main content

Get Secp256k1 private key

Using the privKey() method in the web3auth instance you can get the secp256k1 private key.

Method​

get privKey(): string;

Usage​

const privateKey = web3auth.privKey()

Response​

"0ajjsdsd...."