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

feat: remove gateway from federation #4366

Merged
merged 4 commits into from
Feb 28, 2024

Conversation

m1sterc001guy
Copy link
Contributor

Fixes: #4027

Adds a challenge-response protocol for removing gateway registrations from federations.

Challenge is the sha256 hash of bytes. This ensures that the challenge changes every time the gateway is re-registered. It also ensures that each guardian has its own challenge.

Gateways since with their private key (public key is the gateway_id).

@m1sterc001guy m1sterc001guy requested review from a team as code owners February 19, 2024 23:38
@m1sterc001guy m1sterc001guy changed the title chore: remove gateway from federation feat: remove gateway from federation Feb 19, 2024
Copy link
Contributor

@elsirion elsirion left a comment

Choose a reason for hiding this comment

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

Some nits, one security concern

modules/fedimint-ln-server/src/lib.rs Outdated Show resolved Hide resolved
modules/fedimint-ln-server/src/lib.rs Show resolved Hide resolved
modules/fedimint-ln-server/src/lib.rs Outdated Show resolved Hide resolved
modules/fedimint-ln-server/src/lib.rs Outdated Show resolved Hide resolved
modules/fedimint-ln-server/src/lib.rs Outdated Show resolved Hide resolved
modules/fedimint-ln-common/src/api.rs Show resolved Hide resolved
gateway/ln-gateway/src/state_machine/mod.rs Outdated Show resolved Hide resolved
elsirion
elsirion previously approved these changes Feb 21, 2024
gateway/ln-gateway/src/lib.rs Outdated Show resolved Hide resolved
gateway/ln-gateway/src/state_machine/mod.rs Outdated Show resolved Hide resolved
elsirion
elsirion previously approved these changes Feb 22, 2024
@elsirion elsirion added this pull request to the merge queue Feb 28, 2024
Merged via the queue into fedimint:master with commit 69aae4a Feb 28, 2024
20 checks passed
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.

LeaveFederation gateway RPC should optimistically try to de-register itself from the federation
3 participants