Daohub-io / cap9

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

Storage Capability Std Api #183

Closed Latrasis closed 5 years ago

Latrasis commented 5 years ago

In order to facilitate a procedure development workflow, we need start with an api that makes it easier to work with storage capabilities:

Latrasis commented 5 years ago

Developing such an API is tricky, since this requires thought and experimentation on our part. One way to start is to do dogfooding – I propose we thus:

  1. Implement an ACL Procedure #135, using raw syscalls, including tests.
  2. Refactor #135, to use an abstract StorageMap Type and StorageVec Type
  3. Refactor #135, to use an abstract iterable StorageMapIter Type
JakeOShannessy commented 5 years ago

There are currently some data/key size limits on the StorageMap that aren't encoded in the type system or robustly protected, so that still needs to be done.

JakeOShannessy commented 5 years ago

This can be considered complete with #185.