https://github.com/technologiespro/proof-of-play
Proof-of-Play consensus the gaming chains
https://github.com/technologiespro/proof-of-play
Last synced: 4 months ago
JSON representation
Proof-of-Play consensus the gaming chains
- Host: GitHub
- URL: https://github.com/technologiespro/proof-of-play
- Owner: technologiespro
- License: mit
- Created: 2019-09-06T00:20:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-06T02:05:14.000Z (almost 7 years ago)
- Last Synced: 2025-09-30T04:48:54.639Z (9 months ago)
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Proof-of-Play consensus the gaming chains
- a new block is generated when a game event occurs
- data is serialized into a well-known array instead of objects to reduce the amount of traffic transmitted to other nodes
- game nodes interact with each other using sockets
- at the socket level we use additional compression of serialized data
- separate protocol for receiving static information and query execution on JSON/RPC
- storage LevelDB keys/values
- real-time gaming events are broadcast via sockets in DAPPs
- optional: to develop a load balancer, sharding
- solve the problem of nat using udp through the stun
blockData: 0xblockHeight
- prevBlockHash
- blockHash
- blockTime
- generatorId: address
- payload: [txsData]
txsData:[]
- txtype: bet/play (0/1)
- txIdSTH: hash
- gameId: hash-md5
- amount: sth
- timestamp: unixtime
- senderId: address
- recipientId: address
- gameValue: 0/1 hash
- senderSig: from sth
- affiliateID: address
--------------------------------
- txType: result (2)
- txIdSTH: hash
- gameId: hash-md5
- amountWin: sth
- timestamp: unixTime
- senderId: address
- winnerId: address
- affiliate: {
- accountId: address
- amount: sth
}
- playerBet: {
- accountId: address
- blockId
- txIndex
- value
- amount
}
- playerPlay: {
- accountId: address
- blockId
- txIndex
- value
- amount
}
- gameResult: 0/1