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

Fix storage types #179

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Fix storage types #179

merged 2 commits into from
Nov 5, 2024

Conversation

virgil-serbanuta
Copy link
Member

No description provided.

@virgil-serbanuta virgil-serbanuta marked this pull request as ready for review November 5, 2024 14:19
Copy link

@Robertorosmaninho Robertorosmaninho left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -345,6 +345,7 @@ module ULM-SEMANTICS-HOOKS-BYTES

rule ulmBytesHash(ptrValue(_, u64(BytesId)))
=> ulmBytesHash(ulmBytesId(BytesId))
// TODO: use Keccack here.

Choose a reason for hiding this comment

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

Why is this needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Strictly speaking, we don't need keccack here. What we actually want is:

  • A hash function that has a low collision probability
  • Using all 256 bits of the hash.

It's just that we are already using keccack in other places so we wouldn't add new dependencies or complexity by using it.

Copy link
Member Author

Choose a reason for hiding this comment

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

I rewrote the TODO.

@virgil-serbanuta virgil-serbanuta merged commit 61d754d into main Nov 5, 2024
3 checks passed
@virgil-serbanuta virgil-serbanuta deleted the storage-type branch November 5, 2024 17:59
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.

2 participants