fortunecookies / roadmap

Cross-project roadmap and place to collect new ideas
0 stars 0 forks source link

Twitter oracle/verification service #4

Open michaelsena opened 6 years ago

michaelsena commented 6 years ago

We need to validate when players tweet their FortuneCookies, then publish a verification to the chain.

So our user buys and opens a new FortuneCookie, then is prompted to tweet his/her FortuneCookie to receive a 10% GoodFortune bonus. This is right from the FortuneCookies web app. Tweet includes a visual of the surprise (if applicable), text of the surprise (if applicable), FortuneCookie number, and other information. Then, the FortuneCookies app automatically submits a FortuneCookiesTweetVerification claim to the uPort registry (ERC780) in the background, including tweet URL, FortuneCookie number, and player address.

@KamesCG - thoughts?

kamescg commented 6 years ago

I think it's a great idea. Sharing is obviously is going to be a part of this prject

Is "GoodFortune" going to be calculated on-chain or off-chain? We could compute the GoodFortune on a server, then post the results to the blockchain? Anybody can verify the computations, but it won't occur in a smart contract. It will probably get expensive handling the computations on-chain.

What about integrating Peepeth too, because we can use their existing on-chain tweets as verification?

michaelsena commented 6 years ago

Peepeth would be cool, but to me that can come later. I didn't state it expressly, but imo the goal of this feature should be to spread the word to a wide audience (twitter), and then verify that the person did that. Because Peepeth has a very small audience, it might not resonate as far and wide. But I think we should definitely integrate with them at some point.

re: GoodFortune: Agreed. I imagine we could make the GoodFortune equation known by posting it to IPFS and storing the hash of the equation on-chain, then just storing data and running compute on a server. We could make those results available with a simple API to our app, or others apps in the future. (@KamesCG)

michaelsena commented 6 years ago

I'm slightly concerned with spoofability and security of the twitter thing. I've been trying to think through some of the potential vulnerabilities, and trying to keep track of how we can verify this process end to end.

kamescg commented 6 years ago

A Twitter account can be verified using a similar setup to Keybase or Mike Xu's uPort account verification service, but with any public key. A User will have to verify a Twitter handle, then we can add GoodFortune to their tweets.

On Peepeth, get extra GoodFortune for growing the decentralized ecosystem :)