Hi, I'm trying to provide the following hash function to my WASM component:
world default my-app {
import host: interface {
blake2b-256: func(bytes: list<u8>) -> list<u8>
}
}
but I've hit an error saying that 2
is not a valid character in an identifier.
I've found this passage in this file:
Identifiers in WIT documents are required to be valid component identifiers, meaning that they're "kebab cased". This currently is restricted to ascii characters and numbers that are - separated.
This seems to suggest that this is a bug? I'd be happy to open a PR, but I'm not super familiar with the codebase, so having some idea where to look would be helpful.
Of course, I can just open an issue instead. Or if this is actually intended behavior, then perhaps this wording should be changed?
https://github.com/WebAssembly/component-model/issues/134
Last updated: Dec 23 2024 at 13:07 UTC