@volr/sdk-core 0.1.113 → 0.1.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1133,13 +1133,15 @@ function createPasskeyProvider(passkey, options) {
1133
1133
  });
1134
1134
  const wrapKey = prfOutput;
1135
1135
  const aad = options.aad || new TextEncoder().encode("volr/master-seed/v1");
1136
- const masterSeed = await unsealMasterSeed(
1136
+ const entropy = await unsealMasterSeed(
1137
1137
  options.encryptedBlob.cipher,
1138
1138
  wrapKey,
1139
1139
  aad,
1140
1140
  options.encryptedBlob.nonce
1141
1141
  );
1142
+ const masterSeed = await entropyToSeed(entropy);
1142
1143
  const keypair = deriveEvmKey({ masterSeed });
1144
+ zeroize(entropy);
1143
1145
  unwrappedKeypair = {
1144
1146
  privateKey: keypair.privateKey,
1145
1147
  publicKey: keypair.publicKey,