Document that Wasm signatures support components.#262
Document that Wasm signatures support components.#262sunfishcode wants to merge 2 commits intoWebAssembly:mainfrom
Conversation
The Wasm signature format described in Signatures.md is general enough to work on components, and there is [component support in wasmsign2], so document that the format supports components. [component support in wasmsign2]: wasm-signatures/wasmsign2#5
|
wasmsign2’s support for WASI components is untested, undocumented, and fairly rudimentary. The core idea behind the signature format is to allow verification of subsets of a WebAssembly module, and to permit adding new sections without invalidating existing signatures. In this model, WebAssembly sections are the unit of verification. I’m not very familiar with WASI components, but my assumption is that you would need the ability to split signatures by component instead of, or in addition to sections. Unless each component is represented as its own dedicated section, in which case the current scheme should work out of the box. |
|
In Wasm components, each component is represented as its own dedicated section. |
|
Thanks! Maybe something worth mentioning in the description. |
|
I've now added a brief mention of how components are organized into sections. |
The Wasm signature format described in Signatures.md is general enough to work on components, and there is component support in wasmsign2, so document that the format supports components.