SmartHoldem - Decentralized gaming platform & Poker-Room on BlockChain
SmartHoldem is an independent, zoomed gaming platform with a set of protocols to ensure the integrity and reliability of data storage, where all network members do not need to trust each other or anyone. The platform is secured by a reliable distributed database with the latest encryption and data verification technologies without disclosing their identity. An original technology is developed taking into account all the advantages and disadvantages of the early systems.
●The ready working prototype GameClient & Full Wallet under all known OS
●The fast and secure Blockchain based on our own technology, provides secure storage and financial operations of SmartHoldem trade tokens and Gaming assets
●Built-in browsers for payment and game operations
●Transparency of ICO (all the information is public)
●Duplicating of the ICO Transaction Data in BlockChain SmartHoldem
●The minimum cost of tokens in Pre-Sale and favorable conditions
●At the end of the ICO, after 72 hours, the tokens are available for transactions in the SmartHoldem network
Interests of the Holders
Taking into account the interests of the holders and players, the platform is completely transparent and has the following advantages:
●Annual emission: NO
●Minimum start-up investment: NO
●BlockChain efficient algorithms: Delegate Proof-of-Stake
●The independent BlockChain, developed personally for the Poker-Rooms segment and related areas, taking into account all the advantages of early systems such as BitCoin, NEM.
●Transparency of all calculations.
●A reliable, professional team, with more than 10 years of experience in IT, cryptography, business and game development
●The unique consensus of Proof-of-Stake + SuperBlocks.
●A deflationary financial model is proposed due to the absence of tokens emission.
1. Poker-Room SmartHoldem players, for participating in the game, purchase in-game units “SmartHoldem chips” GameChips for SmartHoldem tockens, that are used to make a stake in the game. Thus, the cost of SmartHoldem tokens increases due to the constant demand for the platform. The more players choose fair play and use the decentralized SmartHoldem platform, the higher the value of the tokens on the exchanges.
2. To support the gaming network, we use the computers connected to the Internet. Users who support the network are encouraged by commission fees for transfers, new “coins” are not produced. The system is similar to a pot deposit, with the difference that the STH tokens owner stores the “money” at one’s own place. A small amount of SmartHoldem tokens is stored on the owner’s balance for at least a certain period of time, which increases the value of the token and the owner’s “profit”, as it reduces the amount of STH in trading on exchanges. The more STH is on the balance sheet and the longer the time, the higher the weight of the node and, accordingly, the higher the reward for network support.
3. 6% of the pot of each game is distributed between the holders of the tokens (the players’ participation according to the affiliate program, 2% gets the partner and 3% is distributed between the holders of the tokens). The winner always gets 94% from the pot of the game, 1% is taken by SuperNodes that supports the GameNet stability. At the first stage, there is no affiliate program of 2%.
4. The tournament fund is with an initial amount of 1.2 million tokens (* see Renewable tournament fund). To participate in the annual tournament, the player must buy a tournament ticket for at least $25 in STH coins (the amount can be changed in the final version), coins are “frozen” for at least 1 year, making up the next tournament fund, before automatically activating the next annual tournament. 20% of the tournament fund is fairly distributed among the holders in proportion to the generating balance (participating in the PoS), 80% is won by the tournament winner.
●Early investors get up to 21% (50,400,000 STH) of all tokens.
●The Pres-Sale closing threshold of $360,000 at the Pre-Sale stage is the fixed cost of 1 token STH = $0.00715
●You can receive an access to information on project progress before official publications in information sources directly from the project organizer.
●90% of the invested funds go to the global marketing & advertise campaign ICO, the deployment of the trusted Nodes servers primary network.
●Address participation in the Genesis Block
●After the ending of the main ICO, early participants also receive a percentage of unsold tokens
Token distribution scheme (escrow included):
●62% of ICO tokens (cost of 1 token is $0.10 in the first half of the period and $0.12 in the second, the rest of the unsold tokens is automatically distributed among the ICO participants in a percentage ratio depending on the purchased tokens volume and players who have a balance of 3000+ tokens, including early participants who received 3000+ tokens during the Pre-Sale period)
●21% of early tokens buyers (before ICO), pre-sale threshold of $360,000 (~$0.00715 / 1 token), in case of not full selling of the “early” tokens, automatically go to the general fund ICO.
●3% – ICO advertising in a cryptosystem, bounty
●4% – investment advisors
●6% – the fund of developers, including future ones, is blocked for 1 year, without participation in PoS
●3.5% – funds: SuperNodes, Stock Guarantees, Players Advisors
●0.5% – starting balance of the first tournament fund, without participation in PoS
* crypto is tokens participating in ICO: BitCoin, LiteCoin, Ethereum
* escrow service included
The ICO logic
IMPORTANT * !There is no minimum investment threshold.
●Total tokens 240 000 000 STH
●83% of tokens will participate in ICO, Pre-Sale is 21% and ICO is 62%,
●The Pre Sale period is 21 days (504 hours), the date is published not less than 1 week before the start.
●The ICO period is 36 days (864 hours) starts according to the timer on the official website https://SmartHoldem.io.
●All Main ICO data are duplicated in the Public BlockChain SmartHoldem and are available in the http://smartholdem.io:9191 block browser, as an additional security, transparency.
●Upon ending of the ICO, the tokens are divided into unique SmartHoldem addresses of the participants, there is an access to private keys, the first version of the wallet and import of addresses into the wallet, 72 hours after the ICO closing, the tokens are available for operations on the SmartHoldem network.
Timetable of the ICO tokens distribution
Intended usage of investments
Planned access to the following exchanges
There is high probability of including the STH token in trading on popular exchanges:
To ensure exchange guarantees and primary volumes, the percentage of tokens is given to exchanges.
The future of poker has come. SmartHoldem is the guarantee of an absolutely fair game. Unscrupulous Poker-Rooms are a thing of the past. Enjoy 100% of Poker!
●Anonymity and security
●It is possible to activate protection against conspiracies (RandMixRoom)
●Constant availability of On-Line, no points of failure
●Absence of a third party (administrators and other interested persons) during the games. Here players and only players.
●Fast and convenient interface
●Tokens block-chain are used as game chips, that will be available on exchanges in the future.
●An independent mathematical algorithm without administrators stores and manages the Game .
●There are no delays in transactions, in contrast to conventional systems
●Unlimited Transaction Amounts
●Annual tournament is with an automated tournament fund
●Support for online games in two modes: Texas Hold’em Limited and Texas Hold’em Unlimited
●Stable GameNet game network
●Encrypted Live Chat
●Support for unique game nicknames in BlockChain
New features of Poker-Room
●Anonymity of each player, no need in registration
●A fast and convenient gaming client with a built-in light wallet
●Personal GameChain with secure game statistics
●Minimum commission fees for transactions
●Instant and uncontested transactions
●Unlimited amounts of incoming and outgoing transactions
●Absence of restrictions from the third parties
●Decentralized DNS built-in support
●Absence of overhead costs for the integration of payment systems and support of a gaming servers centralized network
●PRNG with entropic Seed
●OSI encryption model + data compress in messages
SmartHoldem Game Client
The prototype of the cross-platform game client Poker-Room includes: a wallet, built-in browser GameExplorer, viewing and analysis of game statistics, fast compact GameChain, integration with GameNet protocols.
GameClient is developed with game servers support: DarkRift2, Nakama, Photon (testNet Only).
OpenSource DarkRift / Nakama integrates into SuperNodes, providing a stable gameplay. In SmartHoldem, SuperNodes c GameNet are used for really useful functions - deploying a cloud-based decentralized dual-purpose gaming network (DGNDP *).
SmartHoldem gaming unit
SmartHoldem Poker-Room uses the GameChips tokens as calculations in the gaming application.
In future versions, game assets release for the applications will be available for the user or any developer. Additional internal asset – GameChips (game chips) – are used within the gaming applications.
The current payment unit GameChips in the SmartHoldem game application is purchased for STH tokens and always has a fixed ratio, 1000 GameChips = 1 STH.
Fast non-commission fees operations in BlockChain SmartHoldem gaming applications
Automatic Atomic Cross-Chain exchange both STH> Chips / Chips> STH
For more details, see GameChips in the gameplay.
Renewable tournament fund
We are developing a unique tournament system with an automatically renewed tournament fund and a starting balance of 1,200,000 SmartHoldem tokens (0.5% of the total volume of tokens).
How does this work?
In the first tournament round (1 round = 1 year) developers add the amount of 1 200 000 STH tokens, to a special address, that is publicly accessible, protected by SmartEvents system, new PoS, unavailable to anyone for the output operations.
To participate in the tournament, you need to buy a tournament ticket, the equivalent of $25 in SmartHoldem coins, which opens access to the tournament games. Each bought ticket goes to the tournament fund of the second round, which will be played in the next tournament year.
Poker-Room standard tournament rules are used during the tournament; the game statistics are recorded in the tournament SideChain.
The winner automatically receives 80% of the tournament fund of the round onto his SmartHoldem Address from the SmartEvents system, and 20% is fairly divided between the holders of the tokens.
In a year the system returns to the point (2) and it continues endlessly. Self-renewing SmartHoldem poker tournaments are carried out without infringement of the human organizer annually.
The fund balance is available in BlockChain browser at any time.
Analytics of the games
The work flow chart shows the development of a specialized software for statistical analysis of games with the API that is necessary for professional players at Poker.
●The record and the view of your own gaming sessions (all data is stored encrypted in a decentralized network)
●The personal analysis and collection of game statistics
●Evaluation of the game results, according to the successful / unsuccessful results
●Personal diagrams of games and results dynamics
●Evaluation of games in terms of mathematics, based on probability theory and combinatorial methods
●Personal statistics of winnings / losses
This tool will add transparency to the games and will help not only poker players, but also developers in improving the RNG algorithms.
The non-interference algorithm
The non-interference algorithm is based on the built-in automated SmartEvents system with its own programming language without human input, which guarantees the unavailability of interested persons to view the “unfair shuffling” during dealing the cards.
Before each hand at Poker-Room, all the cards in GameChain (the logical area BlockCnain SmartHoldem is responsible for the game statistics and games) are in an encrypted form, upon ending of the game these data become available for decryption / viewing by the game participants.
The honesty algorithm
There is the proven honesty algorithm in games.
●Before starting any hand, SmartEvents generates a public control hash- hand using cryptographic functions and records to BlockChain.
●Upon ending of the game, the decryption key is sent to players by automated SmartEvents.
●Honesty of the game is checked both by the built-in methods of GameExplorer, and by any third-party service.
The SmartHoldem gaming platform is written entirely from scratch in C #, JAVA, C ++, with the consensus of early systems. The platform is modified with unique SmartEvents algorithms, new transaction formats and blocks.
The ultimate goal is a high-performance, scalable, fast, secure open source solution.
A number of unique functions are being developed and tested, such as:
●High scalability and design, based on a multilevel Internet architecture.
●Introduction of high-performance and highly scalable integration supernodes
●High capacity of game events in accordance with their order for real-time processing and processing of a large amount of data in transactions
●Using NoSQL database, more suitable for high-speed information exchange
●Built-in deposit service for exchange of assets on a block-chain – a special transaction event
●Secure access to your account, i.e. everyone can access only their own account
●Ability to interact with external applications and centralized Internet for transactions in BlockChain
●The Smart Event algorithm provides for transition of an event to a new state as a result of certain and convincing actions, in particular, based on the results of calculations of transaction costs based on a pre-established set of irrevocable and unchanging criteria
●Transactional metadata are descriptive metadata that are used by automated workflows. These are structured data representing the characteristics of the facts described for their identification purposes.
●There is built-in messaging solution, including gaming encrypted chat
●Each account contains assets and statistics from multi-registers in BlockChain, thus the SmartHoldem platform completely blocks any interference in the game process from outside.
●One can view transaction history with the formation of a complete accounting journal
●There is the decentralized DNS – access to the system is not subject to restrictions
●A self-renewing periodic tournament fund is regulated by players *
●Our algorithm developed to fix the Signatures of BlockChain’s improves the resistance to “attacks from afar”
Public BlockChain SmartHoldem is designed all-new, providing the maximum stability, security, scalability and transparency of the Poker-Room with support of the built-in SmartEvents event language, API.
Why BlockChain SmartHoldem?
We intentionally created from the ground up a stable, progressive BlockChain to generate SmartHoldem tokens, eliminating the problems of Bitcoin & Later systems and getting additional native functions of the decentralized GameClient, P2P gaming network and new technologies in this area.
●Block generation time ~5 sec
●New 2DPoS algorithm without emission
●DNS decentralized names
●Support for internal assets calculation in games (currently Game Chips)
●AES256 encrypted messages
●Automated operations / transactions with built-in SmartEvents
●Ed25519 DSA signatures
Main Features of BlockChain
The SmartHoldem platform is designed to meet the basic requirements of the Poker-Rooms industry, and is a universal solution, suitable for both the financial sector and general applications. SmartHoldem features provide solutions that are not available in most blockchains.
SmartHoldem has a number of innovative features, such as: a decentralized names repository, a specialized API, multi-signature, randomseed of game objects, game chips, SmartEvents with built-in execution language for automated tasks without third-party intervention.
The chain is perfectly secured from spam transactions, ignores malicious or faulty nodes, and has a new consensus – Proof-of-Stake without emission, which is more environmentally friendly and efficient than Proof-of-Work.
All these features make the SmartHoldem network high-speed and easy to maintain with all the in-built features.
In order to provide better security in interaction with quantum computers, there are studies in the field of consensus based on neural networks and acyclic graphs.
At the moment, no public blockchain provides such technologies, and no other chain is ready for large-scale use in the Poker-Room segment.
Decentralized Gamechain database, is designed to ensure the honesty and non-interference in the ongoing games from third parties. Players and only players (PoP).
The GameChain block browser is integrated into the wallet and gaming client, provides secured statistical information to specific players. Extended game statistics are available only to participants of the completed game. Statistics is used to obtain analytical information with subsequent analysis of professional players, as well as to improve future versions of RNG algorithms by developers.
It is created as a separate database. GameChain is the most compact, protected from “bad” chains and “attacks from afar”, a new technology developed within SmartHoldem. BlockChain is used in the initial stage:
●The block generation time is 5 seconds, Atomic Cross-Chain Exchange, MultiSig, Stream Confidentiality, Commission fees: NO
With enough transaction volume, it comes to the 2 stage and does not use blocks. The concept of a directed acyclic graph, the speed of processing transactions increases with the number of players:
●Atomic Cross-Chain Exchange, Stream Confidentiality, Commission fees: NO, Blocks: NO
GameChips in the gameplay
GameChips are fast calculating units in games and are cryptographically safe. They have a fixed exchange ratio: 1 SmartHoldem token = 1000 GameChips. The process of obtaining GameChips partially resembles trading in decentralized exchanges, but with some differences.
●There is no waiting for execution of the order (application) for the exchange, everything happens automatically
●There is a conditional deposit
●The fixed exchange rate is 1 STH to 1000 GameChips in two directions
●Speed of execution
●Friendly exchange is reduced to 1 click
●Cross-Chain Atomic Exchange technology is involved in the exchange operations. All gaming operations are recorded in BlockChains
●Absence of commission fees
●Fast / instant operations
●Stored in a separate Game BlockChain and do not overload the main BlockChain Smartholdem
●Exchange between BlockChains in 2 sides at a fixed ratio of 1:1000
●Participate in Automatic Atomic Cross-Chain Exchange transactions
●In the making they can be moved into the DAG format (NoBlockChain transactions on acyclic graphs), in this case the signature of the GameChain last block will be the beginning of the graph.
SmartEvents is a new technological protocol developed in the SmartHoldem Platform, it is the heart of the system, the guarantor, the arbiter in games and the betting bank. SmartEvents also provides a number of other innovative features related to events.
Within the SmartEvents protocol, a programming language is used that supports the Turing constructions, with the functions necessary to automate the execution of intelligent events:
●Storage and distribution of game pots
●Renewable tournament fund
●Determination of the winners
●Dealing of the cards and other game objects
●Interaction between the calculation and game modules
●Fair game validation
●Division of Poker-Room bank payments
●MultiSig addresses with event support (freeze the balance before the date with conditions, divide the balance provided X, operations with the balance of the address Y with the participation of N-signatures, freeze the management of the balance of the address Y up to the date D and divide the earned coins to NYX addresses, joint management of capital, send the encrypted message and the amount to the Y address under the condition of X etc ..). Currently, the integration of MAST (BIP-0114)
BlockChain: Use Cases
●Multi-purse with unlimited account addresses
●SmartEvents & MultiSig SmartHoldem as the basis of the Decentralized Standalone Platform;
●Protection against wrong large commission fees when transferring funds
●Support for any platforms and operating systems, including future ones
●Storage of information in non-typical form (statistics and achievements of players)
●Exchange of messages, both encrypted and not;
●Built-in Transaction Block Browser
●Built-in browser of game statistics blocks (* RoadMap)
●Alternative sending of coins on a unique registered name in BlockChain (Name Service)
●Password protection of the wallet
●Restoring a complete wallet from BlockChain with a private key
●The function of removing unnecessary addresses from the wallet
●JSON RPC Wallet Management API
●Decentralized DNS. No need to install VPN / Proxy. (* RoadMap)
●Paper wallet (* RoadMap)
●Voting of Holders (1 token = 1 vote) (* RoadMap)
●Identification / authorization systems without declaring identity (* RoadMap)
Technologies: Random Number Generator
The Random Number Generator (RNG) is a device, or a special computer program, that is used to provide “honesty” in a poker game. The RNG generates a sequence of numbers that correspond to certain results in the game. No one can predict in the P2P network what the next number in the series will be, no matter how many previously generated numbers are known. Generally, such generators are used to create unique symmetric and asymmetric encryption keys.
Most Poker-Rooms receive special certificates confirming the viability of their RNG and software. Cigital, one of the largest companies in this field, is engaged in software certification for poker and RNG. Certificates of this company are the largest Poker-Rooms Full Tilt Poker, Poker Stars. The basis of any testing is a set of tests NIST (National Institute of Standards and Technology), based on the US standard FIPS 140-2 (Federal Information Processing Standard).
As Seed of RNG, SmartHoldem uses real entropy components in combination with PRNG:
●Random technical data of the SmartHoldem network (speed, ping, peers)
●Random data blocks (number, amount, transaction)
●CPU temperature, device noise
●Dev/urandom generates cryptographically safe values with high entropy by combining noise values from different parts of the operating system (for example, device drivers) for RNG. A random number comes directly from the kernel by reading the file /dev/urandom. /dev/urandom has access to the RNG hardware, if any.
A cryptographically strong random number generator (RNG)
The SecureRandom class is combined with the entropy seed. A cryptographically strong random number minimally performs statistical tests of the random number generator defined in FIPS 140-2, Security requirements for Cryptographic Modules, section 4.9.1. Additionally, SecureRandom must produce nondeterministic output. Therefore, any seed material that is passed to the SecureRandom object must be unpredictable, and all SecureRandom output sequences must be cryptographically strong, as described in RFC 1750: Accidental Recommendations for Security.
To optimize the infinite reshuffling of cards, an experimental “static” deck is programmatically created, in which the cards are always arranged in order – starting with ace of spades, then two, etc.
Instead of shuffling the pack, cards are taken from the pack in a random way, based on the data that the RNG supplies. This solves two problems.
First, you can not use the shuffle algorithm.
Secondly, this method makes it absolutely impossible to predict the next card in the pack. The defines just before the moment it is necessary for the game, and “peep” the next card is simply impossible, because it is unknown! There are many tables involved in the game, and each table randomly accesses different sources of generators, so it is impossible to predict what data will be delivered for a particular “table”.
Technologies: Affiliate Program
Decentralized affiliate program in GameChain is designed for information resources. The affiliate program protocol is unique and is developed by the SmartHoldem team.
How it works on the part of the user (simplified scheme):
●Information resource, hereinafter (IR), pays generation of affiliate code for N-coins, receives a unique one-time affiliate code (hash-key). Affiliate code can be passed to any affiliate using public Internet methods.
●Affiliate goes into the game, activates the affiliate code, gets the amount of the affiliate code to the account in the form of N-coins
●IR receives a record in the blockchain with the identifier of the involved affiliate
●IR receives 2% of the winnings of the attracted affiliate during the games
●The player does not lose anything, because he always geys 94% of the winnings in the room.
●2% for the affiliate is formed from commissions of the room
As the start-up technology, BitCoin BIP-0047 is used. Reusable Payment Codes for Hierarchical Deterministic Wallets, BIP32 - Hierarchical Deterministic Wallets, BIP43 - Purpose Field for Deterministic Wallets, BIP44 - Multi-Account Hierarchy for Deterministic Wallets
SuperBlocks are specialized blocks of BlockChain SmartHoldem, generated by rules other than the standard ones and intended for equitable distribution of funds.
In contrast to the standard blocks, where the entire amount is taken by one user who found the block, SuperBlock divide the capital between a large number of users that are suitable for casual conditions.
There are 2 types of SuperBlocks in SmartHoldem:
1. Holders Block – it is generated every 721th block and is designed to divide funds accumulated for 720 blocks between the holders of tokens in the Poker Room games (up to 5% from each game for the previous 720 blocks).
2. SuperNodes Block – it is generated every 1441th block and is designed to divide funds between SuperNodes, ranked by Trust Level (1% of each game for the previous 1440 blocks).
Scheme of work of SuperBlocks
The RoadMap plan
●The Idea and the concept
●Selection of optimal technologies
●Develop Web Client ICO, bounty, statistics, support system
●Develop Core SmartHoldem (BlockChain, Genesis Block, Tokens, contracts (!Not Etherium))
●Full Wallet Prototype
●TestNet BlockChain SmartHoldem
●Advertise & Marketing Campaign
●Testing ICO FrontEnd
●The development of a decentralized name registration service
●BlockChain SmartHoldem final testing
●SmartHoldem generator of vain wallets
●ICO Pre-Sale Start
●Advertise & Marketing Campaign ICO
●ICO (Start, progress, tokens distribution)
●Public Stat Reports ICO
●Social Media Marketing
●GameNet Base NAKAMA Networking Start Develop
●Develop Protocol SuperNodes GameNet
●Public Official Documentation & API
●Exchangers Full Wallet & Light Wallet Integration
●Negotiations, placement of tokens on stock exchanges
●Advanced Transactions start develop
●Decentralized DNS (at this stage, the main information resources of the project are transferred to the P2P format of the system, available all over the world)
●Game Block Explorer in Full Wallet & GameClient
●Built-in programming language for automated SmartEvents-events
●API additional functions
●Advertise & Marketing Campaign
●Official Testing GameClient, Game Advisors Players in TestNet
●GameNet Nakama Testing
●GameClient + BlockChain + GameChain + Wallet
●GameClient, Full Wallet, Web Server Tests
●Improvements in usability and game mechanics in accordance with the received tests results
●GameClient Mobile Devices
●Testing of the GameNet NAKAMA SuperNodes cloud-based decentralized network
●GameNet DarkRift Develop Start (under insufficient NAKAMA capabilities)
●Development of SmartEvents technology
●Start Intergration SuperBlocks Fair PoS
●Names exchange (at this stage it is possible to put a name for sale)
●Advertise & Marketing Campaign
●The development of the 2-level approach to contracts, when contracts are in BlockChain, but are performed outside of it
●BlockChain + SmartEvents
●GameNet NAKAMA BlockChain & Wallet API integration
●A fully-featured cross-platform version of SmartHoldem GameClient (Linux, Win, Mac OS, iOS, Android) on decentralized DNS with GameNet – a cloud-based game network
●Voting of holders on the development and scaling of the platform (connection of new gaming applications, for example Loto with an open self-regulatory fund, BlackJack etc ..)
●Integration with the gambling segment applications created by other developers.
●SmartHoldem command extension
●Tournament BackEnd Develop
●Advertise & Marketing Campaign
●Full documentation for application developers
●BlockChain Affiliate for Informal thematic resources
●Develop Tournament Front End
●Advertise & Marketing Campaign
●Integration of additional functionality, such as PaperWallet Generator, better data compression
●BitCoin MAST MultiSig Transactions
●Voting of holders
●GameClient Transactions on (DAG) TestNet acyclic graphs
●Updates and additions
●The tournament with a self-regulating fund and the initial amount of 1.2 million tokens
●Integration of new protocols in accordance with the researches results in the field of data processing and compression
●Integration of new applications
●Development continuation of the developer and players’ communities
●Advertise & Marketing Campaign
●Voting of holders
●Updates and additions
●The 2nd Tournament with a self-regulating fund and the amount received in the first tournament year
●Integration of new gaming applications
●Advertise & Marketing Campaign
TestNet Explorer :http://texplorer.smartholdem.i...
Download SmartHoldem Wallet 0.1.8
- fixed conflict usb drivers win
- new color theme for testnet
- dev progressed tabs move to testnet
- minor fixes
- updated block explorer links
Добавлены автоматизированные тесты для нескольких библиотек
автоматизированных тестов используют несколько проектов, в том числе
команда bitcoin core, автоматизированные тесты исключают многие проблемы
при разработке и тестировании
Полностью завершена и готова к
использованию библиотека smartholdem-rpc, в последней версии добавлены
параметры работы с RPC Json по whitelist ip:
Прием запросов с указанного адреса
Прием запросов от всех адресов, для тестирования и настройки
Добавлена работающая генерация иерархических адресов с masterpassword на основе протокола bip38
Добавлен протокол генерации специализированных qr-кодов с uri на основе
протокола bip021 необходимой для выставления счетов, оплаты по ссылкам,
новой версии desktop кошелька
Общедоступный репозитарий медиа материалов smartmedia постоянно обновляется
Анонсирован раздел SmartHoldem Improvement Proposals - SHIPs с
собственным шаблоном, аналог BitCoin BIP, в данном разделе предлагаются к
реализации будущие протоколоы платформы SmartHoldem
Java Client взаимодействия с blockchain SmartHoldem, это 1 из 4
необходимых библиотек развертывания SmartEvents Contracts и нового
событийного протокола взаимодействия сервисов см п.7.
отдельная группа репозитариев SmartEvents направлена на развитие
SmartEvents протоколов, контрактов и нового событийного подхода
взаимодействия с blockchain платформами, здесь подробнее:
известно, когда вы взаимодействуете с серверами для получения данных
обычно используется подход, когда вы периодически обращаетесь к серверу
для получения запрашиваемых данных, к примеру через cron 1 раз в минуту
проеряете наличие новых транзакций в кошельке, или к примеру простой чат
когда вам необходимо обращаться к базе данных сервера каждую секунду с
запросом данных о новых сообщениях, явно данный подход малоэффективен.
исследованиям многих кампаний, 99% ресурсов серверов тратятся впустую
из-за "холостых" обращений к базам данных в сети, что приводит к
дополнительным затратам наращивания серверного железа (RAM, CPU etc..)
эффективность использования ресурсов против 1%, сокращение серверных
издержек. Данная проблема решается разработкой событийного подхода,
состоящего из слушателей (listeners) и поставщиков услуг (services).
сети SmartHoldem могут стать как слушателями, так и поставщиками услуг и
получать за это дополнительное вознаграждение, оплачиваемое
потребителями услуг. Потребители услуг это приложения и кампании,
использующие доверенные предоставляемые сообществом сервисы.
потребители услуг могут поднять своих слушателей и поставщиков услуг на
собственных серверах. Не использовать доверенные удаленные сервисы.
Как это работает
Пример 1 - необходимо получать информацию о поступающих транзакциях на тысячи адресов
Listeners слушают события сети в blockchain локально / удаленно,
создавая больше возможностей для пользователей сети и децентрализуя
службы. API позволяет потребителям создавать подписки и получать события
blockchain в режиме реального времени с использованием обратных вызовов
Services обрабатывают события и выполняют любые
заданные условия и контракты. Создают и выполняют сервисные контракты,
которые могут быть любыми: от загрузки файла до передачи ценностей,
создания интеллектуальных контрактов, выполнения кода на вычислительных
платформах на основе bockchain или взаимодействия с IoT.
Потребитель услуг (к примеру биржа с тысячей адресов SmartHoldem)
подписывается на события в сети, в нашем примере это поступление
транзакции на адреса N1000+ с условием 5+ подтверждений.
происходит событие Services выполняют необходимую логику, к примеру
отправить POST оповещение в базу данных/Callback URL о поступлении новой
подтвержденной транзакции и добавить баланс STH в аккаунт пользователя.
Здесь исключена любая лишняя нагрузка на сервера и 100% эффективность с минимальным потреблением ресурсов.
Событийная технология используется и в контрактных детерминированных событиях.
Пример максимально упрощен в понимании базовых принципов взаимодействия узлов.
качестве безопасности могут использоваться white list, доверенные узлы и
уникальный API Key, получаемый потребителем услуг на основе STH-Адреса.
Т.е. все запросы в сети происходят с авторизацией. Запросы без
авторизации отклоняются сервисами и слушателями сети.
получения Api Key потребитель пополняет свой адрес STH на необходимую
сумму задаваемую поставщиками услуг от 0 до N монет. Если потребитель
является и поставщиком собственных услуг он может задать 0.
потребитель использует доверенных поставщиков услуг, услуга будет
предоставляться до тех пор пока не растратится весь баланс подписанного
адреса с API Key в пользу поставщика услуг. Рекомендуемая начальная
сумма для поставщиков услуг 100 единиц.
Услуги и контракты неограничены в своих модификациях. Первичные услуги и события могут быть следующего содержания:
- создан новый блок - выполнить операцию
- получена транзакция на адрес A с числом подтверждений N
- получена транзакция на адрес A с числом подтверждений N и суммой > S
- отправлена ставка на игровое событие E
- инициировано игровое событие + сервисный контракт
- получен блок N
- прямой обмен BTC > STH через сеть + контракт
Как установить и настроить API документацию на сервере
Последняя версия документации SmartHoldem API на основе slate доступна по адресу
Пошаговое руководство вы можете посмотреть здесь: