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
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5278756
Set rpc endpoints and impl operator new deposit
ekrembal Jul 31, 2024
2355bb9
Impl verifier new_deposit
ekrembal Jul 31, 2024
841de9a
Impl operator_kickoffs_generated
ekrembal Aug 1, 2024
55d8f2c
impl more verifier functions
ekrembal Aug 6, 2024
05cba06
Merge MuSig2 functions into ekrem/new-architecture (#206)
ozankaymak Aug 9, 2024
39614ce
Create XOnlyPublicKeys from PublicKeys using an extension trait (#216)
lemonpartee Aug 14, 2024
c6d54c3
Finalize new architecture for deposit except db operations (#211)
ekrembal Aug 14, 2024
47c0493
Update DB for New Architecture (#222)
ozankaymak Aug 16, 2024
f843942
Merge DB changes to ekrem/new-architecture (#227)
ozankaymak Aug 20, 2024
70fa7c3
Remove code duplication (#228)
ozankaymak Aug 21, 2024
6efc136
Merge withdrawal into ekrem/new-architecture (#234)
ozankaymak Aug 26, 2024
69784f3
Implement sig_agg helpers (#237)
ekrembal Aug 26, 2024
4fedc3b
Deposit test (#232)
lemonpartee Aug 27, 2024
b812617
Apply review + refactor (#243)
ozankaymak Aug 27, 2024
df802b9
Remove unused dependencies (#238)
lemonpartee Aug 27, 2024
1567e8f
Remove unused utils (#239)
lemonpartee Aug 27, 2024
5d6ed76
Add docker compose with database (#245)
lemonpartee Aug 28, 2024
74e0065
Merge pull request #250 from chainwayxyz/main
ceyhunsen Aug 28, 2024
3341e35
Full withdrawal flow (#253)
ekrembal Aug 29, 2024
0a28886
get rid of basic workflow
ekrembal Aug 29, 2024
6587f7c
Workflow improvements (#251) (#255)
ekrembal Aug 29, 2024
cec4e67
workflow: remove all features.
ceyhunsen Aug 29, 2024
b895b47
Merge branch 'main' into ekrem/new-architecture
ceyhunsen Aug 29, 2024
aa92282
Merge "clippy" into "ekrem/new-architecture"
ozankaymak Aug 29, 2024
dc9fce9
Fix CI config toml
ekrembal Aug 29, 2024
f92afdf
Change CI config + remove warnings
ozankaymak Aug 29, 2024
1acb70e
Apply clippy suggestions for all
ozankaymak Aug 29, 2024
3126d91
nits
ozankaymak Aug 29, 2024
7b9a91b
Fix duplication
ozankaymak Aug 29, 2024
a6926e8
Fix CI error
ozankaymak Aug 29, 2024
af48858
Apply more clippy suggestions (#256)
lemonpartee Aug 29, 2024
a3184f7
cargo: Update mock_rpc.
ceyhunsen Aug 29, 2024
f9599d6
workflow: Re-add --all-features.
ceyhunsen Aug 29, 2024
380638e
workflow: Upgrade 4 cores to 16 cores.
ceyhunsen Aug 29, 2024
6e7fded
perf: Insert nonces in a single batch (#248)
lemonpartee Aug 29, 2024
e74e523
Cargo upgrade
ekrembal Aug 29, 2024
bde257a
minimize op_return usage
ekrembal Aug 29, 2024
6103871
fmt
ekrembal Aug 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .docker/db/init.d/test-database-and-users.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE ROLE citrea WITH LOGIN CREATEDB;
CREATE DATABASE citrea;

CREATE ROLE clementine WITH LOGIN CREATEDB;
CREATE DATABASE clementine;
54 changes: 40 additions & 14 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
jobs:
debug_mode_build:
name: Compile code in debug mode
runs-on: ubicloud-standard-4
runs-on: ubicloud-standard-16

steps:
- uses: actions/checkout@v4
Expand All @@ -32,7 +32,7 @@ jobs:

release_mode_build:
name: Compile code in release mode
runs-on: ubicloud-standard-4
runs-on: ubicloud-standard-16

steps:
- uses: actions/checkout@v4
Expand All @@ -53,7 +53,7 @@ jobs:

debug_mode_test:
name: Test code in debug mode
runs-on: ubicloud-standard-4
runs-on: ubicloud-standard-16
needs: debug_mode_build

services:
Expand Down Expand Up @@ -105,22 +105,35 @@ jobs:
port = 3000
secret_key = "5555555555555555555555555555555555555555555555555555555555555555"
verifiers_public_keys = [
"034f355bdcb7cc0af728ef3cceb9615d90684bb5b2ca5f859ab0f0b704075871aa",
"02466d7fcae563e5cb09a0d1870bb580344804617879a14949cf22285f1bae3f27",
"023c72addb4fdf09af94f0c94d7fe92a386a7e70cf8a1d85916386bb2535c7b1b1",
"032c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991",
"029ac20335eb38768d2052be1dbbc3c8f6178407458e51e6b4ad22f1d91758895b",
]
num_verifiers = 5
operators_xonly_pks = [
"4f355bdcb7cc0af728ef3cceb9615d90684bb5b2ca5f859ab0f0b704075871aa",
"466d7fcae563e5cb09a0d1870bb580344804617879a14949cf22285f1bae3f27",
"3c72addb4fdf09af94f0c94d7fe92a386a7e70cf8a1d85916386bb2535c7b1b1",
"2c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991",
"9ac20335eb38768d2052be1dbbc3c8f6178407458e51e6b4ad22f1d91758895b",
]
num_operators = 5
db_file_path = "database"
num_verifiers = 4
min_relay_fee = 305
user_takes_after = 200
confirmation_treshold = 1
confirmation_threshold = 1
network = "regtest"
bitcoin_rpc_url = "http://127.0.0.1:18443"
bitcoin_rpc_user = "admin"
bitcoin_rpc_password = "admin"
all_secret_keys = [
all_verifiers_secret_keys = [
"1111111111111111111111111111111111111111111111111111111111111111",
"2222222222222222222222222222222222222222222222222222222222222222",
"3333333333333333333333333333333333333333333333333333333333333333",
"4444444444444444444444444444444444444444444444444444444444444444",
"5555555555555555555555555555555555555555555555555555555555555555",
]
all_operators_secret_keys = [
"1111111111111111111111111111111111111111111111111111111111111111",
"2222222222222222222222222222222222222222222222222222222222222222",
"3333333333333333333333333333333333333333333333333333333333333333",
Expand All @@ -145,7 +158,7 @@ jobs:

release_mode_test:
name: Test code in release mode
runs-on: ubicloud-standard-4
runs-on: ubicloud-standard-16
needs: release_mode_build

services:
Expand Down Expand Up @@ -197,22 +210,35 @@ jobs:
port = 3000
secret_key = "5555555555555555555555555555555555555555555555555555555555555555"
verifiers_public_keys = [
"034f355bdcb7cc0af728ef3cceb9615d90684bb5b2ca5f859ab0f0b704075871aa",
"02466d7fcae563e5cb09a0d1870bb580344804617879a14949cf22285f1bae3f27",
"023c72addb4fdf09af94f0c94d7fe92a386a7e70cf8a1d85916386bb2535c7b1b1",
"032c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991",
"029ac20335eb38768d2052be1dbbc3c8f6178407458e51e6b4ad22f1d91758895b",
]
num_verifiers = 5
operators_xonly_pks = [
"4f355bdcb7cc0af728ef3cceb9615d90684bb5b2ca5f859ab0f0b704075871aa",
"466d7fcae563e5cb09a0d1870bb580344804617879a14949cf22285f1bae3f27",
"3c72addb4fdf09af94f0c94d7fe92a386a7e70cf8a1d85916386bb2535c7b1b1",
"2c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991",
"9ac20335eb38768d2052be1dbbc3c8f6178407458e51e6b4ad22f1d91758895b",
]
num_operators = 5
db_file_path = "database"
num_verifiers = 4
min_relay_fee = 305
user_takes_after = 200
confirmation_treshold = 1
confirmation_threshold = 1
network = "regtest"
bitcoin_rpc_url = "http://127.0.0.1:18443"
bitcoin_rpc_user = "admin"
bitcoin_rpc_password = "admin"
all_secret_keys = [
all_verifiers_secret_keys = [
"1111111111111111111111111111111111111111111111111111111111111111",
"2222222222222222222222222222222222222222222222222222222222222222",
"3333333333333333333333333333333333333333333333333333333333333333",
"4444444444444444444444444444444444444444444444444444444444444444",
"5555555555555555555555555555555555555555555555555555555555555555",
]
all_operators_secret_keys = [
"1111111111111111111111111111111111111111111111111111111111111111",
"2222222222222222222222222222222222222222222222222222222222222222",
"3333333333333333333333333333333333333333333333333333333333333333",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
jobs:
formatting:
name: Check formatting
runs-on: ubicloud-standard-4
runs-on: ubicloud-standard-16

steps:
- uses: actions/checkout@v4
Expand All @@ -17,7 +17,7 @@ jobs:

linting:
name: Check linting
runs-on: ubicloud-standard-4
runs-on: ubicloud-standard-16

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
.DS_Store
Cargo.lock
risc0-guests/operator/guest/Cargo.lock
risc0-guests/verifier/guest/Cargo.lock
target/
.env
configs
./database
.vscode
.docker/db/data/
Loading
Loading