bob-collective / bob

BOB is a hybrid L2 that combines the security of Bitcoin with the versatility of Ethereum.
https://app.gobob.xyz/
71 stars 35 forks source link

Add Bitcoin transaction creation and signing logic to the SDK #247

Open nud3l opened 3 months ago

nud3l commented 3 months ago

Is your feature request related to a problem? Please describe. We are currently implementing Bitcoin signing logic in various places like the SDK and in the sats-wagmi package. The problem is that these implementations diverge and lack testing. I like a single isolate tx creation and signing logic here that we can reuse in node.js scripts, testing suits, or in frontend packages.

Describe the solution you'd like

Add the following methods with tests:

Prio 1

Prio 2

Build this on https://github.com/paulmillr/scure-btc-signer and https://github.com/paulmillr/micro-ordinals.

Don't use bitcoinjs-lib.