dart-bitcoin/bitcoin_flutter

Support build segwit transaction

Closed this issue ยท 10 comments

SFzxc commented
SFzxc commented

Lunar new year now, Will come back soon

Hey guys, any progress here?

Edit: is this package still being developed on?

Hey I understand you may be busy. How can I help develop the Native Segwit Transaction Builder?

Specifically:

  1. How much is already done?
  2. What is left to port over from BitcoinJS?

If someone writes a detailed answer outlining exactly the parts i need to port over, i will try to help as much as possible but I'm not sure how much has been done since there is no documentation. Give me the way forward and I'll try my best.

SFzxc commented

@RohanKapurDEV Sorry, i'm so busy now, i added test to cover segwit tx cases. you just need to write code to pass all testcases.
Run pub run test to see which testcase is failed

I have been reviewing the files. Finding this rather difficult honestly. What do you think about me trying to integrate PSBT for bitcoin-flutter, seems a bit more future proof anyway, no?

SFzxc commented

@RohanKapurDEV Sure, PSBT must have soon, appreciate it!

So I've started the skeleton of the PSBT in dart. I'm going to attempt to port over the BIP174 library from Alex Bosworth here: https://github.com/alexbosworth/psbt.

However, since this will likely take me a while (a few months at the least), do you think you could continue to work on the segwit support for the transactionbuilder since you've already started. We may end up with a more robust library if we have both.

Thanks, let me know.

i will, but quite slow

Moved to here #27