Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Blockchain/Rust] Create tw_utxo and adjust tw_bitcoin #3339

Closed
12 tasks done
lamafab opened this issue Jul 27, 2023 · 1 comment
Closed
12 tasks done

[Blockchain/Rust] Create tw_utxo and adjust tw_bitcoin #3339

lamafab opened this issue Jul 27, 2023 · 1 comment
Assignees
Labels

Comments

@lamafab
Copy link
Contributor

lamafab commented Jul 27, 2023

We're planning on separating the UTXO model from tw_bitcoin and making it more generic to also support any kind of (Bitcoin) fork, such as Bitcoin Cash, Litecoin, etc. This UTXO crate will not include (standardized) scripts such as P2PKH and so on. Additionally, tw_bitcoin should be extended with the tw_coin_entry crate similar to #3322.

  • Create tw_utxo
    • Starting implementing this
    • Create Protobuf structures
    • Extend with tw_coin_entry? At least use similar mechanisms such as compile(), json_signer(), ...
      • Add preimage_hashes() which generates the Sighashes for signing.
      • Add compile() which building the final, serialized transaction.
    • Support SIGHASH variants (All, Single, AllPlusAnyoneCanPay, etc...)
    • Support signature hashing variants (legacy, segwit and taproot).
  • Update tw_bitcoin
    • Started implementing this
    • Make use of tw_utxo
    • Extend with tw_coin_entry
    • Add planner for input selection and required "targets"
    • Add proper fee projector/calculator
@weixuefeng
Copy link
Contributor

not support generate taproot address yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@weixuefeng @lamafab @satoshiotomakan and others