Skip to content

[SCF high][easy] Validate hashlock and preimage byte lengths #241

Description

@karagozemin

Goal

Reject malformed hashlocks and preimages before cross-chain order processing begins.

Acceptance criteria

  • Enforce the protocol byte length for hashlocks and preimages.
  • Reject invalid hex and mismatched values with stable errors.
  • Add malformed and boundary fixture tests.

Complexity

High - small implementation, high reliability value.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

SCF 7.0Issues that strengthen the SCF 7.0 resubmission packageStellar WaveIssues in the Stellar wave programpriority: highHigh-impact work for SCF, investor readiness, or launch confidencesecuritySecurity, audit, and responsible disclosure work

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions