horizon-games / eth-state-channels-research Goto Github PK
View Code? Open in Web Editor NEWEthereum state channel research for writing provably-fair games/systems in Solidity
License: MIT License
Ethereum state channel research for writing provably-fair games/systems in Solidity
License: MIT License
Looking at the server and client library code, I don't think this is working currently. The issue is that the timestamp the server sends back to the clients is time.Now().Unix()
. The contract uses now >= timestamp
to check if the timestamp has expired or not.
In other words, the contract thinks the timestamp is when the match expires, and the server thinks the timestamp is when the match began.
The server needs to add DGame.MatchDuration()
to time.Now().Unix()
to align with what the contract expects. This is better than adding it to the check on the contract side because doing it properly like that would require checking that the player is playing the correct game as well.
To add to that, the server should be monitoring exits as well, and cancel any ones for which it possesses a valid signed timestamp of.
c786888 is a work around that removes the public seeds from being a part of the hash signed by the matcher. That commit needs to be reverted, but doing so causes matchHash
calls to revert when executed.
Can we update interfaces in https://github.com/horizon-games/arcadeum/tree/master/ethereum/interfaces to the latest revision?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.