forked from tari-project/tari
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check bytes remaining on monero blocks (tari-project#5610)
Description --- Checks the bytes left after deserializing monero pow_data to ensure all bytes have been used. Motivation and Context --- Because the struct is stored as raw vec<u8> in headers, we need to ensure that all the bytes are used after deserializing to ensure that malicious nodes dont attcked bytes to change the hash or enlarge the headers. See TARI-010 How Has This Been Tested? --- unit tests Audit Finding Number --- TARI-010 --------- Co-authored-by: Stan Bondi <[email protected]>
- Loading branch information
1 parent
f466840
commit 1087fa9
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters