       case 23:
                        return s + "-" + hex;
                    default:
                        return s + hex;
                }
            }, '')
        }

        async function wasiKeyvalueStoreOpen(tx, rx, identifier) {
            const text = new TextEncoder();

            const idBuf = text.encode(identifier);
            if (idBuf.length > 127) throw 'this example currently does not support identifiers longer than 127 bytes - open a PR!';

            const payloadBytes = 1 + 