Storage#Write Capability (Ewasm)
Latrasis opened this issue · 3 comments
Latrasis commented
Test Procedure in cap9-std/examples/writer_test.rs
should use #proc_storage_write
in the internal cap9-std
crate.
We need to include tests in tests/syscalls/write.ts
for a procedure that:
- Is given 1 storage write capability
type 0x7
, that allows it to write an arbitrary, 32-byte value in address0xdeadbeef
. This capability must be stored at write cap index0
. - Creates a 32 byte memory buffer, and invokes the write capability to write the value
0xfee
using#storageStore
to address0xdeadbeef
.
JakeOShannessy commented
0xfoo
-> 0xfee
, because hex.
JakeOShannessy commented
- Implement syscall.
- Implement capability checking.
JakeOShannessy commented
Completed with #171.