lambdaclass / lambdaclass/lambda_ethereum_consensus

Add property tests comparing hashing with `Ssz` and `SszEx`

Open
#728 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ssz test
Dominant language
Elixir
Stars
109
Forks
41
PR merge metrics
No merged PRs in 30d

Description

There are multiple that can be done. For an example, see:

https://github.com/lambdaclass/lambda_ethereum_consensus/blob/74663965827d5eeb0e88f40fa134e0899e73394a/test/unit/snappyex_test.exs#L102-L119

As a start, we can add it for basic types, just doing hashing of integers (for bools we can just add both cases as tests), and checking the result is the same.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the example in test/unit/snappyex_test.exs around lines 102-119, then locate the existing hashing tests or entry points for Ssz and SszEx. Add parity coverage for integer hashing and both boolean cases, and verify the results match between the two implementations.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.