-
Notifications
You must be signed in to change notification settings - Fork 628
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
refactor: use header info for interchain accounts address generation #7713
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in principle. But my understanding is that we can just go back to deterministic address generation because addresses are no longer instantiated as base accounts on receive. So we no longer have to protect against DoS attacks with the new sdk changes
buf = append(buf, header.AppHash...) | ||
buf = append(buf, header.DataHash...) | ||
buf = append(buf, headerInfo.AppHash...) | ||
buf = append(buf, headerInfo.Hash...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we no longer get access to datahash directly? Is there a reason it isn't in header info?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a question for the sdk team I think.
Agree! That skipped my mind about the removal of account creation from |
Quality Gate passed for 'ibc-go'Issues Measures |
Description
Removes
UnwrapSDKContext
for interchain accounts.Now uses block hash (merkle root of block) instead of dataHash for interchain accounts address generation.
The
ctx.BlockHeader
is deprecated and recommended to now use service based approach. TheHeaderService
provided by cosmos-sdk returnsheader.Info
which only containsappHash
,hash
(merkle root of block),height
,time
andchainID
.It is recommended to use
cometservice
when anything else is needed.Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
).godoc
comments.Files changed
in the GitHub PR explorer.SonarCloud Report
in the comment section below once CI passes.