-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d22b8d8
commit 7b95375
Showing
4 changed files
with
63 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
34 changes: 22 additions & 12 deletions
34
docs/src/architecture/08_concepts/hermes_packaging_requirements/overview.md
This file contains 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
20 changes: 14 additions & 6 deletions
20
docs/src/architecture/08_concepts/hermes_packaging_requirements/wasm_modules.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
# Packaging WebAssembly (WASM) modules in a Hermes Application | ||
|
||
TODO | ||
```kroki-d2 | ||
@from_file:architecture/08_concepts/hermes_packaging_requirements/images/wasm_module_metadata.dot | ||
``` | ||
|
||
** SJ Notes ** | ||
Wasm modules need the following data: | ||
|
||
1. The compiled WASM code | ||
2. Metadata about the wasm module | ||
1. Name | ||
2. Author | ||
3. Repo | ||
4. License | ||
5. etc. | ||
|
||
1. Name | ||
2. Author | ||
3. Repo | ||
4. License | ||
5. etc. | ||
|
||
4. Configuration data (Json or CBOR) that parameterises the module. | ||
|
||
1. Json schema for "Preset" parameters. These are not changeable by the user. | ||
2. Json schema for "Configurable" parameters. These can be set by the user before the app runs. | ||
3. The actual "preset" parameters themselves (which must be valid according to the "preset" parameter schema. | ||
|
||
5. All of the above should be encoded using CBOR (Needs to be defined with a valid CDDL schema). | ||
5. A Signature of the Module Author and/or publisher validating its the code they "released". | ||
|
||
1. For this we should wrap all the above in COSE (See: RFC-9052, RFC-9053, RFC-0338) | ||
2. All CBOR is to be specified as needing to be encoded following the deterministic CBOR Rules. See https://developer.blockchaincommons.com/dcbor/ and https://datatracker.ietf.org/doc/draft-mcnally-deterministic-cbor/ |
This file contains 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