feat: WASM Component Model signing support (FEAT-11, SC-20, SC-21)#74
Merged
feat: WASM Component Model signing support (FEAT-11, SC-20, SC-21)#74
Conversation
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 Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 roundtriptest_component_model_tamper_detection: Tampered content detectedtest_component_section_ids: Enum parsingtest_nested_detection: CoreModule/Component identificationVerification
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/verifycommands.🤖 Generated with Claude Code