Closed TimDaub closed 5 years ago
here are some more details in the mock: https://docs.google.com/drawings/d/1rcTgrE9ZsbClerhOGthGe9J6eLHYrQnq7ZJp8h7mwYs
Spec for QR code generation:
getUnspent(citizenAddr, passportColor)
and read first passport data as dataBefore
.dataAfter
.sig
by ecsign(hashPersonalMessage(dataBefore, dataAfter), PRIV)
.| 2 bytes passportColor | 20 bytes citizenAddr | 32 bytes dataAfter | 32 bytes sigR | 32 bytes sigS | 1 byte sigV |
.https://toco2.leap.rocks/trade#<119 bytes receipt encoded as base64 url (rfc4648)>
.Spec for scanning and verifying QR code:
passportColor
, citizenAddr
, dataAfter
and sig
.getUnspent(citizenAddr, passportColor)
, take first result, read data as dataBefore
.ecrecover(hashPersonalMessage(dataBefore, dataAfter))
and compare to citizenAddr
, should match.sig
and dataAfter
in transaction payload.
Scope
In "Planet A" two players can trade.
A trade emits CO2
CO2 is tracked on a per-player basis. Essentially each player will have a CO2 score
The trading process works as follows:
"Mechanics"
From the testing a light version of the game, it became clear that the following things make trading more fun:
Deliverables
Note
Roles
bounty gardener: @TimDaub / 10% bounty worker: name / 75% bounty reviewer: name / 15%