Skip to content

Commit

Permalink
starknet-tee
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroRosalba committed Jan 8, 2025
1 parent 7b161ec commit 3955354
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/plugin-tee/src/providers/deriveKeyProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,16 @@ const deriveKeyProvider: Provider = {
secretSalt,
agentId
);
const snKeypair = await provider
const snKeypair = await provider.deriveSnKeypair(
"/",
secretSalt,
agentId
);

return JSON.stringify({
solana: solanaKeypair.keypair.publicKey,
evm: evmKeypair.keypair.address,
sn: snKeypair.keypair.publicKey
});
} catch (error) {
console.error("Error creating PublicKey:", error);
Expand Down

0 comments on commit 3955354

Please sign in to comment.