-
Notifications
You must be signed in to change notification settings - Fork 977
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
Replay protection #1017
Replay protection #1017
Conversation
b2a4067
to
3b56dee
Compare
pls update wasm |
replay_protection::get_tx_hash_key(&wrapper.tx_hash); | ||
if self | ||
.storage | ||
.has_key(&inner_hash_key) |
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 could actually use StorageRead::has_key
here an everywhere else since, for the moment, I'm not interested in the gas used
721162b
to
c2b06ea
Compare
c2b06ea
to
7e1dacc
Compare
77685b6
to
c030da0
Compare
pls update wasm |
78a13f9
to
47ee165
Compare
fce297e
to
074b98a
Compare
42147a1
to
42e056d
Compare
pls update wasm |
2700b5f
to
48bcb8c
Compare
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.
LGTM, good amount of testing!
…nto draft-0.15 evil: wl_storage gains a 'static * namada/grarco/replay-protection-impl: [ci] wasm checksums update Updates fees in replay protection specs Brings back sig check in `finalize_block` Fixes fee error code [ci] wasm checksums update Fixes fee in unit tests Fmt Refactors replay protection logic Removes wal from replay protection specs Removes unnecessary clones Fixes tx unsigned hash Replay protection VP always rejects Fixes typos changelog: add #1017 [ci] wasm checksums update Clippy Fmt Updates `process_proposal` unit tests Fixes `finalize_block` and adds unit test Updates replay protection specs with protocol txs Updates `process_proposal` unit tests Removes tx hash from storage in `finalize_block` Fixes error codes Refactors `process_proposal` Replay protection checks in `process_proposal` Fixes replay protection specs Refactors `unsigned_hash_tx` Unit test `mempool_validate` Wrapper commit hash on unsigned inner tx Adds tx hash check in mempool validate Updates replay protections specs with governance and unsigned inner hash Adds replay protection internal address and vp Updates replay protection specs changelog: add #1051 core: added `TempWlStorage` for ABCI++ prepare/process proposal
…nto draft-0.15 evil: wl_storage gains a 'static * namada/grarco/replay-protection-impl: [ci] wasm checksums update Updates fees in replay protection specs Brings back sig check in `finalize_block` Fixes fee error code [ci] wasm checksums update Fixes fee in unit tests Fmt Refactors replay protection logic Removes wal from replay protection specs Removes unnecessary clones Fixes tx unsigned hash Replay protection VP always rejects Fixes typos changelog: add #1017 [ci] wasm checksums update Clippy Fmt Updates `process_proposal` unit tests Fixes `finalize_block` and adds unit test Updates replay protection specs with protocol txs Updates `process_proposal` unit tests Removes tx hash from storage in `finalize_block` Fixes error codes Refactors `process_proposal` Replay protection checks in `process_proposal` Fixes replay protection specs Refactors `unsigned_hash_tx` Unit test `mempool_validate` Wrapper commit hash on unsigned inner tx Adds tx hash check in mempool validate Updates replay protections specs with governance and unsigned inner hash Adds replay protection internal address and vp Updates replay protection specs changelog: add #1051 core: added `TempWlStorage` for ABCI++ prepare/process proposal
* grarco/replay-protection-impl: [ci] wasm checksums update Updates fees in replay protection specs Brings back sig check in `finalize_block` Fixes fee error code [ci] wasm checksums update Fixes fee in unit tests Fmt Refactors replay protection logic Removes wal from replay protection specs Removes unnecessary clones Fixes tx unsigned hash Replay protection VP always rejects Fixes typos changelog: add #1017 [ci] wasm checksums update Clippy Fmt Updates `process_proposal` unit tests Fixes `finalize_block` and adds unit test Updates replay protection specs with protocol txs Updates `process_proposal` unit tests Removes tx hash from storage in `finalize_block` Fixes error codes Refactors `process_proposal` Replay protection checks in `process_proposal` Fixes replay protection specs Refactors `unsigned_hash_tx` Unit test `mempool_validate` Wrapper commit hash on unsigned inner tx Adds tx hash check in mempool validate Updates replay protections specs with governance and unsigned inner hash Adds replay protection internal address and vp Updates replay protection specs
Addresses #1009
Based on #1051 for
TempWlStorage
Implements hash-based replay protection
WrapperTx
commit to be computed on the hash of the unsigned inner txmempool_validate
checksprocess_proposal
checks and rejects block on most errorsfinalize_block
to store the hash of txs