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

Collect and set Winternitz public keys in aggregator #374

Merged
merged 18 commits into from
Dec 16, 2024

Conversation

ceyhunsen
Copy link
Member

Description

Adds collecting and saving Winternitz public keys support for aggragator::setup RPC endpoint.

Linked Issues

@ceyhunsen ceyhunsen changed the base branch from main to dev December 10, 2024 12:35
@ceyhunsen ceyhunsen force-pushed the ceyhun/aggregator_wpk branch from 7edb9f9 to fbb4a59 Compare December 10, 2024 14:42
core/src/aggregator.rs Outdated Show resolved Hide resolved
core/src/database/common.rs Show resolved Hide resolved
@ceyhunsen ceyhunsen marked this pull request as ready for review December 11, 2024 12:17
@ceyhunsen ceyhunsen requested a review from ekrembal December 11, 2024 12:17
@@ -130,4 +130,10 @@ create table if not exists header_chain_proofs (
proof bytea
);

-- Verifier table of Winternitz public keys for every operator and time_tx pair
create table if not exists winternitz_public_keys (
watchtower_id int primary key not null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's save winternitz per operator_id not watchtower_id so that we don't have to load all winternitz pubkeys when signing

@ceyhunsen ceyhunsen requested a review from ekrembal December 12, 2024 14:35
* mock_macro: Add initial.

* mock_macro: Add initialize_database.

* actor: Pilot mock_macro usage.

* mock_macro: Add needed imports for integration tests.

* tests: Use new mock_macro in integration tests.

* mock_macro: Add create_actors.

* mock_macro: Use create_actors everywhere and delete create_actors_grpc.

* mock_macro: Use initialize_database everywhere.

* mock_macro: Use create_test_config_with_thread_name in everywhere.

* test_utils: Rename mock_macro.

* cargo: Delete bin entry of `all_servers`.

* test_utils: Remove create_database and drop_database to add them in initialize_database.

* test_utils: Use get_postgresql_url in initialize_database.

* JsonRPC endpoint removals (#377)

* jsonrpc: Initial remove.

* operator: Remove old rpc test.

* verifier: Convert functions to pub.

* tests: Delete old file.

* cargo: Remove unused features for jsonrpsee.
@ceyhunsen ceyhunsen merged commit bd5d8a0 into dev Dec 16, 2024
7 checks passed
@ceyhunsen ceyhunsen deleted the ceyhun/aggregator_wpk branch December 16, 2024 08:52
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