dacplayproject / cpp-play

Decentralized Clearing Protocol for Entertainment Services
The Unlicense
15 stars 5 forks source link

Add permission/filter to game libraries #31

Open hackfisher opened 9 years ago

hackfisher commented 9 years ago

For each game, they can only access/modify the game assets(chips) they are binding to.

This is the scenario:

The game developer first create several game chip assets (these chip assets can be traded/buy), e.g. dice, then they create a game binding that asset (need the signature of the asset issuer), each a game have a script or reference id pointing to the rules.

hackfisher commented 9 years ago

<id, rule> db to index the game rule definitions

hackfisher commented 9 years ago

Define an *Context in rule api for this specific purpose and further script support.

hackfisher commented 9 years ago

thinking to make an adaptor of wallet_context and blockchain_context in the game API, only those data for the game can be access from that game, including rule data storing in rule_data_db