After the private creation process from Tkey is completed, I receive a privatekey. But the length of private key hex is 62 characters, it does not match the 64 standard.
tKey.serviceProvider.postboxKey = new BN(boxKey, 16);
await tKey.initialize();
const { shareDescriptions } = tKey.getKeyDetails();
let privKey: BN;
if (shareDescriptions) {
await (tKey.modules
.securityQuestions as SecurityQuestionsModule).inputShareFromSecurityQuestions(
password
);
const reconstructKey = await tKey.reconstructKey();
privKey = reconstructKey.privKey;
} else {
const initializeNewKey = await tKey._initializeNewKey({
initializeModules: true,
});
await (tKey.modules
.securityQuestions as SecurityQuestionsModule).generateNewShareWithSecurityQuestions(
password,
QUESTIONS
);
privKey = initializeNewKey.privKey;
}
if (!privKey) {
throw new Error("reconstructKey null");
}
return privKey;