Skip to content

Commit

Permalink
parallel signing
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshuchawla009 committed Nov 6, 2024
1 parent bef9847 commit ca72016
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions demo/redirect-flow-example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,7 @@ function App() {

const signMultipleMessagesWithPrecomputedTss = async (): Promise<any> => {
if (coreKitInstance.keyType === "secp256k1") {
const precomputedTssClient = await coreKitInstance.precompute_secp256k1();
const precomputedTssClient2 = await coreKitInstance.precompute_secp256k1();
const [precomputedTssClient, precomputedTssClient2] = await Promise.all([coreKitInstance.precompute_secp256k1(), coreKitInstance.precompute_secp256k1()]);

const msg = Buffer.from("hello signer!");
const sig = await coreKitInstance.sign(msg, false, precomputedTssClient);
Expand Down

0 comments on commit ca72016

Please sign in to comment.