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

Qi syncing and spending v2 #310

Merged
merged 25 commits into from
Oct 9, 2024
Merged

Conversation

rileystephens28
Copy link
Member

  • improve coin selection process
  • include fee in coin selection process
  • fix issue where only UTXOs owned by BIP44 external addresses are spendable
  • implement payment channel syncing

alejoacosta74 and others added 25 commits October 7, 2024 18:47
* refactor coin selection logic to work with denomination indices

* refactor coinselector to work with UTXO objects

* add new method signature for sendTransaction using paymentCodes

* implement sendTransaction with paymentCode

* update proto schema for Qi

* WIP: add lock field and debug lines

* Fix Qi tx submission

* fix send Qi with musig

* Remove redundent tx type population

* Add qi tx fee and force denominating down for outputs

* Fix signature decision in qi tx signing

* Fix import without file ext

* Export serialized wallet types

* Remove console logs

* Update external deps reference

* Apply automatic changes

* Apply automatic changes

* Fix vulnerable dependency `rollup`

* Apply automatic changes

---------

Co-authored-by: Alejo Acosta <alejoacos@gmail.com>
Co-authored-by: rileystephens28 <rileystephens28@users.noreply.github.com>
@rileystephens28 rileystephens28 merged commit 5ee4182 into alpha Oct 9, 2024
@rileystephens28 rileystephens28 deleted the qi-syncing-and-spending-v2 branch October 9, 2024 22:01
rileystephens28 added a commit that referenced this pull request Oct 10, 2024
* implement sendTransaction with paymentCode

* update proto schema for Qi

* WIP: add lock field and debug lines

* Fix Qi tx submission

* fix send Qi with musig

* bugfix: check for pubkeys equality in signTransaction

* Qi gas fee (#309)

* refactor coin selection logic to work with denomination indices

* refactor coinselector to work with UTXO objects

* add new method signature for sendTransaction using paymentCodes

* implement sendTransaction with paymentCode

* update proto schema for Qi

* WIP: add lock field and debug lines

* Fix Qi tx submission

* fix send Qi with musig

* Remove redundent tx type population

* Add qi tx fee and force denominating down for outputs

* Fix signature decision in qi tx signing

* Fix import without file ext

* Export serialized wallet types

* Remove console logs

* Update external deps reference

* Apply automatic changes

* Apply automatic changes

* Fix vulnerable dependency `rollup`

* Apply automatic changes

---------

Co-authored-by: Alejo Acosta <alejoacos@gmail.com>
Co-authored-by: rileystephens28 <rileystephens28@users.noreply.github.com>

* Apply automatic changes

* Apply automatic changes

* Implement payment channel syncing mechanism and fix other syncing bugs (untested)

* Create optional interface to provide external callback for checking if an address has been used

* bugfix: missing address property

* extend validateOutpointInfo() to check in payment code maps

* bug fix in scanPaymentChannel

* Fix gap sync wip

* Make all utxos spendable and remove spent from set

* Update script to sync after send and check receiving wallet

* update Qi serialization logic

* Fix send address reuse and extra change address generation

* Improve selection process

* WIP: add lock field and debug lines

* Fix Qi tx submission

* fix send Qi with musig

* Remove console logs

---------

Co-authored-by: Alejo Acosta <alejoacos@gmail.com>
Co-authored-by: rileystephens28 <rileystephens28@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants