From 17bc83fb6e40bad90c7076f954a1b9a6980c1b0d Mon Sep 17 00:00:00 2001 From: Mohammad Shahbaz Alam Date: Thu, 24 Oct 2024 17:57:41 +0530 Subject: [PATCH] nit --- .../mpc-core-kit-bitcoin/src/BitcoinComponent.tsx | 1 + mpc-core-kit-web/mpc-core-kit-bitcoin/src/BitcoinSigner.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/mpc-core-kit-web/mpc-core-kit-bitcoin/src/BitcoinComponent.tsx b/mpc-core-kit-web/mpc-core-kit-bitcoin/src/BitcoinComponent.tsx index a7e92cbd..8182500a 100644 --- a/mpc-core-kit-web/mpc-core-kit-bitcoin/src/BitcoinComponent.tsx +++ b/mpc-core-kit-web/mpc-core-kit-bitcoin/src/BitcoinComponent.tsx @@ -201,6 +201,7 @@ export const BitcoinComponent = (props: BitcoinComponentParams) => { } const sendAmount = amount - Math.floor(fee); + console.log("sendAmount", sendAmount); // const selfAddr = account.address!; // console.log("TESTTTTTTTT"); diff --git a/mpc-core-kit-web/mpc-core-kit-bitcoin/src/BitcoinSigner.ts b/mpc-core-kit-web/mpc-core-kit-bitcoin/src/BitcoinSigner.ts index f58599bf..fdc28a78 100644 --- a/mpc-core-kit-web/mpc-core-kit-bitcoin/src/BitcoinSigner.ts +++ b/mpc-core-kit-web/mpc-core-kit-bitcoin/src/BitcoinSigner.ts @@ -6,8 +6,12 @@ export function createBitcoinJsSigner(props: { coreKitInstance: Web3AuthMPCCoreK return { sign: async (hash: Buffer, lowR?: boolean) => { let sig = await props.coreKitInstance.sign(hash); + console.log("sig", sig); const { r, s } = sigToRSV(sig); + console.log("r", r); + console.log("s", s); const sigBuffer = Buffer.concat([r, s]); + console.log("sigBuffer", sigBuffer); return sigBuffer; }, publicKey: props.coreKitInstance.getPubKeyPoint().toSEC1(secp256k1, true),