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),