Daohub-io / cap9

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

[WIP] SRML Cap9 #201

Closed JakeOShannessy closed 4 years ago

JakeOShannessy commented 5 years ago

This PR is an early work in progress. At its current stage it builds substrate and a small test harness for testing contracts. The changes in this PR are mainly in the substrate/ subdirectory. The two directories are contracts which is our version of the srml_contracts module, and test-harness which is a executable crate that connects to a running substrate node and tests deployment and execution of contracts.

JakeOShannessy commented 4 years ago

The modified version of Substrate now uses an array of 7 booleans to represent the capabilities. This can be fairly simply modified for more fine grained capability. The focus for now should be on the interaction of contracts and the like.