Skip to content

fuzz: add sv2_message_roundtrip fuzz target #76

@xyephy

Description

@xyephy

Add a fuzz target that tests serialization/deserialization roundtrip for all SV2 message types:

  • Sv2SetupConnectionMsg
  • Sv2NewTemplateMsg
  • Sv2SetNewPrevHashMsg
  • Sv2SubmitSolutionMsg
  • Sv2CoinbaseOutputConstraintsMsg
  • Sv2RequestTransactionDataMsg

This complements the existing sv2_noise_cipher_roundtrip fuzzer by covering the message parsing layer.

Edge cases to cover:

  • Maximum field lengths (255-byte strings, 65K merkle paths)
  • Boundary values (0, MAX_INT)
  • Malformed/truncated messages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions