Skip to content

fix: Validate EIP-4844 blob versioned hash version byte#179

Closed
roninjin10 wants to merge 1 commit intomainfrom
fix/issue-63-eip4844-blob-version-byte
Closed

fix: Validate EIP-4844 blob versioned hash version byte#179
roninjin10 wants to merge 1 commit intomainfrom
fix/issue-63-eip4844-blob-version-byte

Conversation

@roninjin10
Copy link
Contributor

Summary

Test plan

  • Added tests for invalid version byte (0x00 and 0x02)
  • Ran EIP4844 tests - all 7 tests pass

🤖 Generated with Claude Code

EIP-4844 requires blob versioned hashes to start with version byte 0x01.
Added validation in deserialize.js that throws DecodingError with code
INVALID_BLOB_VERSION_BYTE when version byte is not 0x01.

Fixes #63

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
dist Error Error Jan 2, 2026 0:26am
voltaire Error Error Jan 2, 2026 0:26am

Copy link
Contributor Author

@roninjin10 roninjin10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review summary for PR #179 — fix: Validate EIP-4844 blob versioned hash version byte\n\nTouched areas: Transaction | Files changed: 2 (+101/-1)\n\n- Tests: yes\n- Types & API: yes\n- Docs: ensure behavior is documented where user-facing.\n- Performance: consider micro-allocations in tight loops.\n\nOutcome: Comment-only review; no blocking issues spotted. Please consider the above suggestions.\n

@roninjin10
Copy link
Contributor Author

Closing as duplicate - EIP-4844 blob versioned hash validation was merged in PR #287.

@roninjin10 roninjin10 closed this Jan 4, 2026
@roninjin10 roninjin10 deleted the fix/issue-63-eip4844-blob-version-byte branch January 4, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: EIP-4844 blob versioned hash version byte not validated

1 participant