Skip to content

feat: WASM Component Model signing support (FEAT-11, SC-20, SC-21)#74

Merged
avrabe merged 2 commits intomainfrom
feat/component-model-signing
Mar 28, 2026
Merged

feat: WASM Component Model signing support (FEAT-11, SC-20, SC-21)#74
avrabe merged 2 commits intomainfrom
feat/component-model-signing

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Mar 28, 2026

Summary

WASM Component Model signing now works. The existing parser already accepts
component headers and the full-module hash covers all bytes including nested
modules encoded inline — no recursive traversal needed.

New files

  • src/lib/src/wasm_module/component.rs: ComponentSectionId enum (informational)

Tests (6 pass)

  • test_component_model_sign_verify: Sign + verify roundtrip
  • test_component_model_tamper_detection: Tampered content detected
  • test_component_section_ids: Enum parsing
  • test_nested_detection: CoreModule/Component identification
  • 1 Kani proof: Component/module header mutual exclusivity

Verification

The v0.6.1 release verification failure (wsc-component.wasm "Parse error")
was caused by the component binary being a valid WASM component, but the test
was using the wrong CLI flags. Component signing works with the standard
sign/verify commands.

🤖 Generated with Claude Code

avrabe and others added 2 commits March 28, 2026 06:25
Component model signing works because the parser already accepts
component headers and the full-module hash covers all bytes including
nested modules encoded inline. Added:
- component.rs: ComponentSectionId enum (informational)
- 2 signing tests (sign/verify roundtrip + tamper detection)
- 1 Kani proof (header mutual exclusivity)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…2, SC-23)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 28, 2026

Codecov Report

❌ Patch coverage is 91.60839% with 12 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/lib/src/wasm_module/component.rs 67.74% 10 Missing ⚠️
src/lib/src/wasm_module/mod.rs 96.22% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit 297520e into main Mar 28, 2026
15 of 16 checks passed
@avrabe avrabe deleted the feat/component-model-signing branch March 28, 2026 07:28
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.

1 participant