Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Proposed tree hashing test suite format #14

@jannikluhn

Description

@jannikluhn

In addition to plain SSZ tests, we need standardized tests for the related tree hashing algorithm following the general test format. Proposed format:

Test suite name

tree_hashing

Test case format

type: <type def string>
value: <value to hash>
result: <tree hash>

For type and value definition, we use the same format as in the SSZ tests.

The result is encoded as hex with a 0x prefix.

Example

title: uint tree hashing
test_suite: tree_hashing
fork: all
version: "0.1"

test_cases:

- type: uint8
  value: 0
  result: "0x0000000000000000000000000000000000000000000000000000000000000000"

- type: uint384
  value: 0
  result: "0xc980e59163ce244bb4bb6211f48c7b46f88a4f40943e84eb99bdc41e129bd293"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions