@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.cjs CHANGED
@@ -1139,13 +1139,15 @@ function createPasskeyProvider(passkey, options) {
1139
1139
  });
1140
1140
  const wrapKey = prfOutput;
1141
1141
  const aad = options.aad || new TextEncoder().encode("volr/master-seed/v1");
1142
- const masterSeed = await unsealMasterSeed(
1142
+ const entropy = await unsealMasterSeed(
1143
1143
  options.encryptedBlob.cipher,
1144
1144
  wrapKey,
1145
1145
  aad,
1146
1146
  options.encryptedBlob.nonce
1147
1147
  );
1148
+ const masterSeed = await entropyToSeed(entropy);
1148
1149
  const keypair = deriveEvmKey({ masterSeed });
1150
+ zeroize(entropy);
1149
1151
  unwrappedKeypair = {
1150
1152
  privateKey: keypair.privateKey,
1151
1153
  publicKey: keypair.publicKey,