Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
shahbaz17 committed Oct 24, 2024
1 parent 6fd3d71 commit 17bc83f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 4 additions & 0 deletions mpc-core-kit-web/mpc-core-kit-bitcoin/src/BitcoinSigner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 17bc83f

Please sign in to comment.