State of tKey (2/3)
Read mode (1 share available) - initialize()
Write mode (atleast 2 shares available) - recontructKey() will check whether it has 2 shares or not.
Suggestions and Improvements
Main Packages
@tkey/default-web
To work with tKey, one has to create a Web3Auth Verifier from the Custom Auth section of the Dashboard.
Check out how to create a Custom Verifier on the Web3Auth Dashboard.
Understanding Shares
Share A: Social Login Share [TorusServiceProvider, ...]
Share B: Device Share [WebStorageModule, ChromeExtensionStorageModule, ShareTransferModule ...]
Share C: Backup Share [ShareSerializationModule, SecurityQuestionsModule ...]
Installation
yarn add @toruslabs/tss-client @toruslabs/tss-lib @web3auth-mpc/openlogin-adapter @web3auth-mpc/web3auth
Import the following packages
import { Client } from "@toruslabs/tss-client";
import * as tss from "@toruslabs/tss-lib";
import { OpenloginAdapter } from "@web3auth-mpc/openlogin-adapter";
import { Web3Auth } from "@web3auth-mpc/web3auth";
Some other helper libraries too: