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

Include chain-id in signature payload #457

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Conversation

Thomasvdam
Copy link
Member

@Thomasvdam Thomasvdam commented Jan 6, 2025

Motivation

When registering a data-proxy we now require the signed payload to include the chain-id for the intended network. This prevents replay attacks between different environments.

Explanation of Changes

Also updated the invalid signature error to more clearly specify it's the data proxy signature that's invalid, not the TX signature.

Testing

Updated the test vectors by running bun run start register <ADDRESS> <AMOUNT> -n mainnet in the SEDA data proxy PR: sedaprotocol/seda-data-proxy#38

Related PRs and Issues

Closes: #455

When registering a data-proxy we now require the signed payload to
include the chain-id for the intended network. This prevents replay
attacks between different environments.

Closes: #455
@Thomasvdam Thomasvdam merged commit 4901304 into main Jan 7, 2025
15 of 17 checks passed
@Thomasvdam Thomasvdam deleted the feat/data-proxy-chain-id branch January 7, 2025 08:13
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.

✨ Data proxy registration should include chain-id in the hash
3 participants