Daohub-io / cap9

Capability-based security protocol for smart contracts
Apache License 2.0
22 stars 10 forks source link

Log#Write Capability (Ewasm) #136

Closed Latrasis closed 5 years ago

Latrasis commented 5 years ago

Test Example in cap9-std/examples/log_test.rs should use #proc_log defined in the internal cap9-std crate.

Tests in tests/syscalls/log.ts should include:

  1. Introduces Procedure A
  2. Procedure A is designated a log write capability (type 0x8) that allows it to log event from a memory buffer with 0xdeadbeef always as the first parameter.
  3. Procedure A stores Hello World into memory and invokes it's log capability to log HelloWorld as a result.

Registration must follow steps outlined in docs/spec