Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
mainnet
README.md

README.md

Compatible fuzzer

Compatible with current head of master branch for https://github.com/sigp/beacon-fuzz (commit 32b6db2)

Corpora Structure

NOTE: uint16 is used to allow for a reasonable number of test states, while keeping a small size. Minimizing the size reduces the fuzzer's search space.

For the following, state_id is the filename of a relevant BeaconState in ./<preset>/beaconstate/.

attestation/

Attestation SSZ input in the following format:

class AttestationTestCase(Container):
    state_id: uint16
    attestation: Attestation

attester_slashing/

Attestation SSZ input in the following format:

class AttesterSlashingTestCase(Container):
    state_id: uint16
    attester_slashing: AttesterSlashing

block_header/

Block headers ssz input in the following format:

class BlockHeaderTestCase(Container):
    state_id: uint16
    block: BeaconBlock

block/

Block ssz input in the following format:

class BlockTestCase(Container):
    state_id: uint16
    block: BeaconBlock

shuffle/

Binary byte string to be shuffled

Interpreted as follows:

# some binary blob, should at least 34 bytes long
raw_input = bytes.fromhex('deadbeef' * 12)

# the length of the list to be shuffled
shuffle_rounds = raw_input[0:2] % 100

# shuffle seed
seed = raw_input[2:34]

# rest of the data is ignored
You can’t perform that action at this time.