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

Testnet bridge architecture #254

Merged
merged 38 commits into from
Aug 29, 2024
Merged

Testnet bridge architecture #254

merged 38 commits into from
Aug 29, 2024

Commits on Jul 31, 2024

  1. Configuration menu
    Copy the full SHA
    5278756 View commit details
    Browse the repository at this point in the history
  2. Impl verifier new_deposit

    ekrembal committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    2355bb9 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2024

  1. Configuration menu
    Copy the full SHA
    841de9a View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. Configuration menu
    Copy the full SHA
    55d8f2c View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2024

  1. Merge MuSig2 functions into ekrem/new-architecture (#206)

    * Add some musig2 functionalities
    
    * Some changes in general and in MuSig2
    
    * Change musig2 functions
    
    * Add one small test
    
    * Added three more simple tests
    
    * Add test with dummy_tx key_spend
    
    * Add test with dummy_tx script_spend
    
    * Add rpc tests for key_spend and script_spend
    
    * Add wrappers for aggregate_nonces and aggregate_partial_signatures, formatting
    
    * Cargo fmt
    
    * Small change for config file
    
    * Some refactor
    
    * (WIP) Change XOnlyPublicKeys to PublicKeys in config files
    
    * Fix errors from pk-xonlypk change
    
    * More refactor
    
    * Remove code duplication
    
    * More refactor
    
    * Commentation + more refactor
    
    * Trying something
    
    * Removed Cargo.lock + add to .gitignore
    ozankaymak authored Aug 9, 2024
    Configuration menu
    Copy the full SHA
    05cba06 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2024

  1. Create XOnlyPublicKeys from PublicKeys using an extension trait (#216)

    Reduces code duplication and isolates the reponsibility to a dedicated function
    lemonpartee authored Aug 14, 2024
    Configuration menu
    Copy the full SHA
    39614ce View commit details
    Browse the repository at this point in the history
  2. Finalize new architecture for deposit except db operations (#211)

    * WIP
    
    * Fix some errors
    
    * WIP
    
    * Merge ozan/new-architecture-improvments into ekrem/new-architecture-improvments (#218)
    
    * WIP Impl. new endpoints
    
    * WIP Impl. new endpoints
    
    * nits
    
    * Implement move txs partial sig
    
    * WIP db nonce
    
    * Use UTXO instead of PsbtOutpoint
    
    * remove redundant db funcs
    
    ---------
    
    Co-authored-by: ozankaymak <92448699+ozankaymak@users.noreply.github.com>
    ekrembal and ozankaymak authored Aug 14, 2024
    Configuration menu
    Copy the full SHA
    c6d54c3 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. Update DB for New Architecture (#222)

    * Change the db file for the new architecture
    
    * Change some UTXOs to OutPoints, add some checks
    
    * WIP Fix inconsistencies
    
    * WIP Impl database wrappers
    
    * Update schema
    
    * Fix some db
    
    * WIP
    
    * nits
    
    * Fix error for a wrapper, add some example db trait impl. and db func.
    
    * nits
    
    * WIP Impl. database functions
    
    ---------
    
    Co-authored-by: Ekrem BAL <mail.ekrembal@gmail.com>
    ozankaymak and ekrembal authored Aug 16, 2024
    Configuration menu
    Copy the full SHA
    47c0493 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. Merge DB changes to ekrem/new-architecture (#227)

    * Update config files and impl. some db tests
    
    * WIP Fix checks and tests
    
    * (WIP) Add test for nonce table, fix small errors
    
    * (WIP) Add more tests for nonces table
    
    * (WIP) Add tests for get_pub_nonce
    
    * (WIP) Add test for deposit_utxo
    
    * Change operator new_deposit with new schema
    
    * WIP
    
    * DecodeRow inside the function
    
    * Current tests work
    
    * WIP
    
    * Fix Json issue with UTXODB
    
    * Clean wrapper.rs and formatting
    
    * Add tests for deposit_kickoff_generator_txs table
    
    * Apply review
    
    ---------
    
    Co-authored-by: Ekrem BAL <mail.ekrembal@gmail.com>
    ozankaymak and ekrembal authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    f843942 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2024

  1. Configuration menu
    Copy the full SHA
    70fa7c3 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. Merge withdrawal into ekrem/new-architecture (#234)

    * WIP
    
    * nits
    
    * Add sig check for withdrawal (#229)
    
    * Add sig check for withdrawal
    
    * Use tx.verify
    
    ---------
    
    Co-authored-by: Ekrem BAL <mail.ekrembal@gmail.com>
    
    * Impl operator paying withdrawal
    
    * Merge ozan/withdrawal-endpoint-test into ekrem-new-architecture (#230)
    
    * wip
    
    * WIP: created operators and verifiers
    
    * Add steps for the flow
    
    * Add withdrawal endpoint test,organize configs
    
    * Flaky but ok
    
    * Fix flakiness
    
    * Remove unnecessary serialization
    
    ---------
    
    Co-authored-by: lemonpartee <lemonpartey@proton.me>
    Co-authored-by: Ekrem BAL <mail.ekrembal@gmail.com>
    
    * Merge ozan/kickoff-root-operations into withdrawal (#231)
    
    * WIP Implement endpoints with db operations and tests
    
    * wip
    
    * WIP
    
    * WIP
    
    * Implement changes
    
    * Apply review changes
    
    * Refactor the binaries
    
    * Rename, refactor
    
    ---------
    
    Co-authored-by: Ekrem BAL <mail.ekrembal@gmail.com>
    
    ---------
    
    Co-authored-by: Ekrem BAL <mail.ekrembal@gmail.com>
    Co-authored-by: lemonpartee <lemonpartey@proton.me>
    3 people authored Aug 26, 2024
    Configuration menu
    Copy the full SHA
    6efc136 View commit details
    Browse the repository at this point in the history
  2. Implement sig_agg helpers (#237)

    Co-authored-by: ozankaymak <ozan.kaymak@boun.edu.tr>
    ekrembal and ozankaymak authored Aug 26, 2024
    Configuration menu
    Copy the full SHA
    69784f3 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. Deposit test (#232)

    * wip
    
    * WIP: created operators and verifiers
    
    * Add steps for the flow
    
    * wip
    
    * Test e2e deposit flow
    
    * Undo unrelated changes
    
    * Fix agg nonces and use same deposit
    
    * Adjust test flow after rebase to withdrawal
    
    * Use create verifiers and operators func
    
    * Works until set_operator_funding_utxo_rpc
    
    * Fix create operators and verifiers
    
    * Fix sig aggregation
    
    * nits
    
    * WIP
    
    * WIP MuSig2VerifyError(BadSignature)
    
    * Debug
    
    * Fix error
    
    * Send move_tx + refactor
    
    ---------
    
    Co-authored-by: Ekrem BAL <mail.ekrembal@gmail.com>
    Co-authored-by: ozankaymak <ozan.kaymak@boun.edu.tr>
    3 people authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    4fedc3b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b812617 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    df802b9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1567e8f View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. Add docker compose with database (#245)

    * Introduce dockerized PostgresSQL database compatible with integration tests
    
    * refactor compose
    lemonpartee authored Aug 28, 2024
    Configuration menu
    Copy the full SHA
    5d6ed76 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #250 from chainwayxyz/main

    Merge changes in main
    ceyhunsen authored Aug 28, 2024
    Configuration menu
    Copy the full SHA
    74e0065 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. Full withdrawal flow (#253)

    * Save operator take and slash or take sigs
    
    * Operator can find kickoff utxo
    
    * Operator can send kickoff tx onchain
    
    * WIP verifiers and operators should use same db missing
    
    * Fix bugs
    
    * WIP Boths sigs verified but operator_take_tx fails
    
    * WIP MuSig2 fix
    
    * Fix withdrawal happy part test
    
    * nits
    
    * Fix musig test
    
    * Use key aggregator trait
    
    ---------
    
    Co-authored-by: ozankaymak <ozan.kaymak@boun.edu.tr>
    ekrembal and ozankaymak authored Aug 29, 2024
    Configuration menu
    Copy the full SHA
    3341e35 View commit details
    Browse the repository at this point in the history
  2. get rid of basic workflow

    ekrembal committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    0a28886 View commit details
    Browse the repository at this point in the history
  3. Workflow improvements (#251) (#255)

    * workflow: Add all-targets flag to clippy.
    
    * workflow: Add the new build_and_test workflow.
    
    * workflow: Remove all features and move services.
    
    * workflow: Remove old basic workflow.
    
    * workflow: Add cache warm ups for build and test.
    
    * workflow: Add all features flag to build and test.
    
    * workflow: Lower healt-retries to 5.
    
    Co-authored-by: Ceyhun Şen <ceyhuusen@gmail.com>
    ekrembal and ceyhunsen authored Aug 29, 2024
    Configuration menu
    Copy the full SHA
    6587f7c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cec4e67 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b895b47 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    aa92282 View commit details
    Browse the repository at this point in the history
  7. Fix CI config toml

    ekrembal committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    dc9fce9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f92afdf View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1acb70e View commit details
    Browse the repository at this point in the history
  10. nits

    ozankaymak committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    3126d91 View commit details
    Browse the repository at this point in the history
  11. Fix duplication

    ozankaymak committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    7b9a91b View commit details
    Browse the repository at this point in the history
  12. Fix CI error

    ozankaymak committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    a6926e8 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    af48858 View commit details
    Browse the repository at this point in the history
  14. cargo: Update mock_rpc.

    ceyhunsen committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    a3184f7 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f9599d6 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    380638e View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    6e7fded View commit details
    Browse the repository at this point in the history
  18. Cargo upgrade

    ekrembal committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    e74e523 View commit details
    Browse the repository at this point in the history
  19. minimize op_return usage

    ekrembal committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    bde257a View commit details
    Browse the repository at this point in the history
  20. fmt

    ekrembal committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    6103871 View commit details
    Browse the repository at this point in the history