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

Adapt to associate and replay attack prevention sig #1085

Merged
merged 6 commits into from
Dec 15, 2021

Conversation

girazoki
Copy link
Collaborator

What does it do?

Adapts associate_reward_address tests to use wrap byets and network identifier. The latter is used to prevent replay attacks over different networks

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@girazoki girazoki added A0-pleasereview Pull request needs code review. B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes labels Dec 14, 2021
@@ -239,6 +239,7 @@ parameter_types! {
pub const TestInitialized: bool = false;
pub const TestInitializationPayment: Perbill = Perbill::from_percent(20);
pub const RelaySignaturesThreshold: Perbill = Perbill::from_percent(100);
pub const TestSigantureNetworkIdentifier: &'static [u8] = b"test-";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
pub const TestSigantureNetworkIdentifier: &'static [u8] = b"test-";
pub const TestSignatureNetworkIdentifier: &'static [u8] = b"test-";

@girazoki girazoki merged commit aa99e93 into master Dec 15, 2021
@girazoki girazoki deleted the girazoki-bring-wrap-byte-association-to-moonbeam branch December 15, 2021 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0-pleasereview Pull request needs code review. B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants