Skip to content

interop: hash example#14774

Closed
protolambda wants to merge 1 commit intodevelopfrom
proto/interop-hash-example
Closed

interop: hash example#14774
protolambda wants to merge 1 commit intodevelopfrom
proto/interop-hash-example

Conversation

@protolambda
Copy link
Contributor

Description

Example, to hash the access-list entry into a checksum, formatted as the spec in ethereum-optimism/specs#612

Output:

payloadHash = H(
  6578616d706c65207061796c6f6164,
)
payloadHash = 0x8017559a85b12c04b14a1a425d53486d1015f833714a09bd62f04152a7e2ae9b
logHash = H(
  0000000000000000000000000000000000000000,
  8017559a85b12c04b14a1a425d53486d1015f833714a09bd62f04152a7e2ae9b,
)
logHash = 0xfa35a6fe1dcc034ef6b7440a61011451828964643b58ebcb5f3658e2b630edeb
idPacked: 000000000000000000000000a1a2a3a4a5a6a7a8c1c2c3c4c5c6c7c8b1b2b3b4
idLogHash = H(
  fa35a6fe1dcc034ef6b7440a61011451828964643b58ebcb5f3658e2b630edeb,
  000000000000000000000000a1a2a3a4a5a6a7a8c1c2c3c4c5c6c7c8b1b2b3b4,
)
idLogHash = 0x0cb2888b92be9029ab1c5a2af1d99fc92fe28d0ab924bfae7e138e15f382c6c9
bareChecksum = H(
  0cb2888b92be9029ab1c5a2af1d99fc92fe28d0ab924bfae7e138e15f382c6c9,
  000000000000000000000000000000000000000000000000d1d2d3d4d5d6d7d8,
)
bareChecksum = 0xdf139ddd21106abad4bb82800fedfa3a103f53f242c2d5b7615b0baad8379531
Checksum: 0x03139ddd21106abad4bb82800fedfa3a103f53f242c2d5b7615b0baad8379531

@codecov
Copy link

codecov bot commented Mar 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.54%. Comparing base (bdde878) to head (4b2d7dc).
Report is 59 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #14774      +/-   ##
===========================================
- Coverage    46.55%   46.54%   -0.02%     
===========================================
  Files         1046     1046              
  Lines        90673    90673              
===========================================
- Hits         42217    42202      -15     
- Misses       45324    45342      +18     
+ Partials      3132     3129       -3     
Flag Coverage Δ
cannon-go-tests-32 62.08% <ø> (ø)
cannon-go-tests-64 57.13% <ø> (ø)
contracts-bedrock-tests 94.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 10 files with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant

Comments