[Archive] Can we create share from the existing private key using tkey JS SDK?

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by kshitij.dean.sam on 3/28/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.


I wanted to know, Is it possible to onboard anyone on web3auth if he/she already have a private key? And then we can create a share for them from next login and attach those share to the person’s private key?

You can pass the existing key in tkey initialize function as shown here: tkey/core.ts at c678fff6648dc15d8c61845f17b711296fb5c476 · tkey/tkey · GitHub