Daohub-io / cap9

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

Account#Call Capability (Ewasm) #166

Closed Latrasis closed 5 years ago

Latrasis commented 5 years ago

We need to include a test in tests/syscalls/acc_call.ts where:

  1. Creates procedure A, and a non-malicious Contract X
  2. Procedure A is given a account#call capability (type 0x09), that designates it is allowed to make a call to Contract X.
  3. Procedure A sends 1 eth to Contract X by invoking it's capability iff:

Procedure A should use #acc_call from the cap9-std crate

JakeOShannessy commented 5 years ago

Addressed in #182.