Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to reconstruct the user's private key to let them "eject" from TSS MPC? #5

Open
pugbyte opened this issue May 10, 2023 · 1 comment

Comments

@pugbyte
Copy link

pugbyte commented May 10, 2023

Hi there, I'm very keenly interested in using Web3Auth's TSS MPC technology for a project in the near-future. This package looks very promising, but the documentation is still under construction. One thing I'm wondering is if it's possible to reconstruct the user's private key and let them take it elsewhere (imagine that they wanted to import this wallet into MetaMask). Any insight would be appreciated.

@jasperverbeet
Copy link

When initializing the traditional Web3Auth SDK you get a "SafeEmitterProvider" that you can call with:

await web3Auth_.provider?.request({
    method: 'private_key'
})) as string;

I'm assuming it's the same for their MPC SDK. See more details here:

https://web3auth.io/docs/sdk/helper-sdks/providers/#exporting-web3auth-private-key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants