Closed andreibancioiu closed 1 year ago
Temporary workaround:
const walletObject = JSON.parse(fileContent);
const mnemonic = UserWallet.decryptMnemonic(walletObject, "your keystore password");
const secretKey = mnemonic.deriveKey(0);
const signer = new UserSigner(secretKey);
Automatically handle both kinds of keystore files (with secret key vs. with mnemonic), similar to how it's done in the Python SDK:
Also see: