- SDK Version:
“@web3auth/base”: “^9.3.0”,
“@web3auth/ethereum-mpc-provider”: “^9.3.0”,
“@web3auth/ethereum-provider”: “^9.3.0”,
“@web3auth/mpc-core-kit”: “^3.2.4”, - Platform: nodejs
const coreKitInstance = new Web3AuthMPCCoreKit({
web3AuthClientId: this.web3authConfig.clientId,
web3AuthNetwork: this.web3authConfig.networkId,
storage: {
getItem: async (key: string) => "",
setItem: async (key: string, value: string) => { return; },
},
manualSync: true,
tssLib: this.getTssLib(),
baseUrl: "http://localhost",
uxMode: "nodejs",
});
await this.instance.loginWithJWT({
verifier: this.web3authConfig.verifierId,
verifierId: sub,
idToken: token,
});
await this.instance.commitChanges()
All users can log in successfully, which means that there is no problem with JWT verifyer’s columns.
However: some accounts can execute commitChanges()
Some accounts cannot execute commitChanges()
It may have something to do with my concurrent batch generation of accounts
The error message of the user who cannot execute commitChanges() is:
sync metadata error CoreError: Unable to reconstruct not enough shares for polynomial reconstruction
at CoreError.fromCode (/Users/toto/Project/new/block-chain-operation/node_modules/@tkey/core/dist/lib.cjs/errors.js:36:12)
at CoreError.unableToReconstruct (/Users/toto/Project/new/block-chain-operation/node_modules/@tkey/core/dist/lib.cjs/errors.js:73:22)
at TKeyTSS.getAllShareStoresForLatestPolynomial (/Users/toto/Project/new/block-chain-operation/node_modules/@tkey/core/dist/lib.cjs/core.js:1098:20)
at TKeyTSS._syncShareMetadata (/Users/toto/Project/new/block-chain-operation/node_modules/@tkey/core/dist/lib.cjs/core.js:906:29)
at Web3AuthMPCCoreKit.commitChanges (/Users/toto/Project/new/block-chain-operation/node_modules/@web3auth/mpc-core-kit/dist/lib.cjs/mpcCoreKit.js:827:23)
at W3ASolanaClient.login (/Users/toto/Project/new/block-chain-operation/src/w3a/w3a-base.ts:102:29)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateW3aSolWallet (/Users/toto/Project/new/block-chain-operation/src/w3a/w3a-func.ts:24:13)
at async BlockchainService.generateAllWallets (/Users/toto/Project/new/block-chain-operation/src/blockchain/blockchain.service.ts:36:32)
at async /Users/toto/Project/new/block-chain-operation/node_modules/@nestjs/core/router/router-execution-context.js:46:28 {
code: 1302
}
Attempt 1/1 failed: Unable to reconstruct not enough shares for polynomial reconstruction
Error processing wallet for user 1Jl3sunpb: HttpException: Failed to generate W3A Solana wallet for user 1Jl3sunpb after 1 attempts: No error occurred
at generateW3aSolWallet (/Users/toto/Project/new/block-chain-operation/src/w3a/w3a-func.ts:39:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BlockchainService.generateAllWallets (/Users/toto/Project/new/block-chain-operation/src/blockchain/blockchain.service.ts:36:32)
at async /Users/toto/Project/new/block-chain-operation/node_modules/@nestjs/core/router/router-execution-context.js:46:28
at async /Users/toto/Project/new/block-chain-operation/node_modules/@nestjs/core/router/router-proxy.js:9:17 {
response: 'Failed to generate W3A Solana wallet for user 1Jl3sunpb after 1 attempts: No error occurred',
status: 500,
options: undefined
}
I’m trying to find the difference between the user who reported an error and the user who did not report an error
The user who found the error have the following information:
When executing to handleExistingUser
The result obtained by check that checkIfFactorKeyValid
is factorKeyMetadata.message === “KEY_NOT_FOUND”
Therefore, the tssShareIndex
and tssPubKey
in the state are null
Please tell me how can I solve it, thank you very much, This has affected online users, thank you for your timely reply