- Binance Chain: полный обзор блокчейна, который может стать «убийцей Эфириума»
- Что такое Binance Chain
- Предыстория блокчейна Binance
- Миграция BNB на Binance Chain
- Переход других криптовалютных проектов с ERC-20 на блокчейн Binance
- Взаимодействие с кошельками Binance Chain
- Использование Binance Chain Explorer
- Технические особенности блокчейн-сети Binance
- Перспективы Binance Chain
- Binance Chain FAQ v0.5
- What is Binance Chain, or Binance DEX?
- What is the design principle of Binance Chain?
- What can you do on Binance Chain?
- Will Binance Chain introduce more features and transaction types in the future?
- What is the native coin on Binance Chain?
- How can I register on Binance Chain/DEX and start trading?
- How can I send orders on Binance DEX?
- Order
- What is Immediate Or Cancel order ?
- Match
- Trade
- What is Order Expire ?
- Where can I see my assets and trades?
- When can I see my order on the blockchain after I send it?
- What is the Fee Structure?
- Can I see orders/balances of others or can other people see my orders/balances?
- Information provided through API and their usage
- Is there any limit to using the API to send orders or check market data?
- What does Wallet and API cost to use?
- What Market Data can I get?
- What are the tick size and lot size? Are they fixed?
- Are there limits on notional value of an order?
- What is the decimal precision for prices and quantities on Binance Chain/DEX?
- I forgot the private key for my address, how can I get it back?
- My private key got stolen by hackers, how can I recover my assets?
- What is the Accelerated Node?
- How can I issue an asset?
- What is the consensus algorithm used on Binance Chain?
- Can I run a full node for Binance Chain?
- Does Binance Chain support Smart Contracts?
- How can I transfer tokens, such as Bitcoin, from other block chains onto Binance Chain?
- How is a trading pair created on Binance DEX?
- How would a third-party integrate with Binance Chain and Binance DEX?
Binance Chain: полный обзор блокчейна, который может стать «убийцей Эфириума»
С момента запуска биржей Binance своего блокчейна прошло немногим более месяца, но это событие уже успело наделать немало шумихи. За это время на Binance Chain перенесли свои токены несколько видных проектов, за что его успели окрестить «убийцей Ethereum».
В свою очередь биржа заявляет, что ее новая блокчейн-сеть не претендует на упомянутое звание, но зато идеально подходит для торговых операций и в ближайшем будущем на ее базе будет построена по-настоящему децентрализованная инфраструктура, которая станет конкурентоспособной альтернативой сегодняшним централизованным площадкам.
Что такое Binance Chain
Binance Chain — одноранговая блокчейн-сеть, созданная криптобиржей Binance при участии сообщества своих единомышленников (binancians). По словам CEO биржи Чангпенга Чжао (CZ), это простая сеть с минимальным количеством функций, главным преимуществами которой являются почти мгновенные транзакции, низкие комиссионные сборы, быстрая генерация блоков (менее 1 секунды) и способность выдерживать высокие нагрузки.
Не менее важной особенностью Binance Chain является возможность выпуска на ней токенов других проектов с их последующим полным контролем (пересылка между адресами, замораживание, сжигание, создание торговых пар с другими монетами и т.д.).
Такое понятие как смарт-контракты в сети Binance Chain отсутствует. Эту привычную для многих блокчейнов технологическую возможность осознанно исключили, чтобы максимально повысить производительность.
Нативным токеном является криптовалюта Binance Coin (BNB), ранее работавшая на Ethereum-стандарте ERC-20.
Предыстория блокчейна Binance
Впервые криптобиржа Binance заявила о разработке собственной блокчейн-сети в марте 2018, спустя почти год после своего основания. Уже тогда акцентировалось внимание на том, что Binance Chain в первую очередь будет нацелена на быстрые транзакции и станет основой для децентрализованной торговой площадки (DEX).
В следующие несколько месяцев никаких подробностей о процессе разработки нового блокчейна не поступало. Но уже в августе был опубликован видеообзор альфа-версии Binance DEX, в котором, помимо рассмотрения процессов трейдинга и листинга токенов на площадке, был слегка пролит свет на технические детали самой сети.
Затем в начале декабря последовал официальный анонс о готовности Binance Chain к запуску в течение нескольких месяцев. А уже 12 февраля 2019-го Чангпенг Чжао сообщил, что через неделю состоится релиз тестовой сети.
После успешного завершения периода тестирования 18 апреля 2019 года было объявлено о запуске Mainnet (основной сети) Binance Chain и подготовке к переносу BNB с блокчейна Эфириума на ее собственный стандарт токенов BEP2.
Миграция BNB на Binance Chain
Процесс перехода BNB на новый блокчейн Binance был завершен 23 апреля — в этот день биржа объявила о приеме депозитов в старых ERC20-токенах с обязательной конвертацией их в новые.
Обмен происходил путем зачисления на балансы пользователей внесенных ими сумм в уже новых BNB, которые брались из резервных 5 млн монет. Уже хранящиеся на Binance монеты также автоматически конвертировались в токены стандарта BEP2. Все BNB старого образца при этом сжигались.
Миграция никаким образом не повлияла на концепцию Binance Coin — как и прежде общее количество токенов не может превышать 200 млн и их все еще нельзя майнить. График сожжения монет также сохраняется.
Единственным нововведением стала возможность хранить на BNB-кошельках нового формата дополнительные токены других проектов, которые перешли на Binance Chain (по принципу Эфириума).
Переход других криптовалютных проектов с ERC-20 на блокчейн Binance
Сразу же после запуска блокчейна Binance разработчикам различных криптопроектов было предложено перенести на него свои токены. Несмотря на отсутствие поддержки смарт-контрактов и dApps, некоторые проекты все же поспешили перейти на Binance Chain.
Первой стала децентрализованная соцсеть Mithril (MITH). Затем о переносе своих токенов с Ethereum сообщили: площадка рыночной аналитики Red Pulse Phoenix (PHX), биржа ChangeNow (NOW), платформа для создания смарт-контрактов MyWish (WISH), криптокошелек Atomic Wallet (AWC), сервисы для создателей контента Bolt (BOLT) и Gifto (GTO), стартап Aeron (ARN), блокчейн-платформа для разработки игр Enjin (ENJ), протокол для обучения нейросетей RAVEN PROTOCOL, игровая платформа Gtex (GTEX) и децентрализованная площадка для фрилансеров CanYa (CAN).
В этот период СМИ начали называть блокчейн Binance очередным «убийцей Эфириума» и предрекли последнему печальное будущее в случае, если массовая миграция проектов продолжится.
Почему криптостартапы начали переходить на Binance Chain? Во-первых, многих действительно привлек новый блокчейн своей устойчивостью к нагрузкам и способностью быстро обрабатывать транзакции. Ну а во-вторых, потому что таким образом они обеспечили себе листинг на Binance DEX и, следовательно, возможность лишний раз пропампить на этой новости курс своего токена.
Пока что таких проектов чуть больше десятка, но на примере основной биржи Binance мы видим, какое количество в итоге может привлечь CZ.
Также смотрите наше интересное видео о Binance Chain и планах руководителя Чангпенг Чжао:
Планы проекта BinanceВзаимодействие с кошельками Binance Chain
На сегодняшний день самым простым вариантом для получения доступа к этой сети является использование интерфейса площадки Binance DEX. По сути, этот блокчейн ради нее и разрабатывался — чтобы обеспечить беспроблемную обработку как минимум такого же количества транзакций, с которыми справляется централизованная Binance, входящая в тройку криптобирж по ежедневным объёмам торгов (!).
Создание кошелька через Binance DEX выполняется в несколько простых шагов — ввод пароля, сохранение keystore-файла, запись и проверка мнемонической фразы.
Разблокировка созданного кошелька осуществляется через связку с поддерживающими Binance Chain приложениями и аппаратными устройствами Trust Wallet, CoolWallet S, Ledger Nano S/X. Также доступны более привычные способы — с помощью keystore-файла и пароля или фразы из 24 слов.
После разблокировки пользователь получает доступ ко всем возможностям площадки Binance DEX, которая одновременно выступает и криптобиржей и нативным вебкошельком сети со всеми необходимыми для управления своими активами функциями.
Также работать с блокчейном Binance можно через ряд поддерживающих эту возможность кошельков вроде Atomic Wallet, Exodus или Enjin.
Поскольку Binance Chain и DEX позиционируются как децентрализованные продукты, они не хранят паролей, приватных ключей и мнемонических фраз. Эта ответственность ложится на плечи пользователей — в случае утери необходимых для доступа к кошелькам данных восстановить их не представляется возможным.
Использование Binance Chain Explorer
Поскольку Binance Chain является стандартным открытым блокчейном, вся хранящаяся в нем информация о балансах, транзакциях и генерирующихся блоках доступна для просмотра в одноименном эксплорере.
Если ввести в расположенное на любой странице Binance Chain Explorer поле поиска адрес кошелька, отобразятся данные по балансу BNB и другим хранящимся в нем активах.
На вкладке «Transactions» можно просмотреть историю всех транзакций, в которых участвовал данный кошелек.
Просмотр информации (дата, сумма, комиссия, участвующие адреса, валюта) по любой транзакции производится через эксплорер путем ввода ее хеша (TxHash).
Аналогичным образом можно просмотреть данные конкретного блока или торгового ордера, выполненного на Binance DEX.
Технические особенности блокчейн-сети Binance
Binance Chain построен на базе алгоритма консенсуса Tendermint византийской отказоустойчивости (BFT), созданного стартапом Cosmos Network. По сути, блокчейн Binance используется протокол, который является форком упомянутой разработки с некоторыми вырезанными функциями, в том числе смарт-контрактами.
Ответственность за поддержание работы сети Binance Chain и подтверждение всех проходящих через нее транзакций возложена на групповую IT-инфраструктуру, состоящую из валидационных узлов (Validator Node). Эти ноды принадлежат квалифицированным валидаторам, которые присоединяются к процедуре консенсуса и голосуют за создание новых блоков.
Каждый генерируемый этими узлами блок может быть размером до 1 Мб и содержать до нескольких тысяч транзакций. Получаемые сетью комиссионные сборы распределяются между валидаторами.
Особенностью тестнета Binance Chain было то, что все 11 валидационных нод находились под контролем биржи, из-за чего часть сообщества ставила под сомнение утверждение о децентрализованности проекта. Однако, CZ сообщил, что впоследствии управление блокчейном будет осуществляться валидаторами из сообщества, которые не будут напрямую связаны с Binance.
Также в инфраструктуре блокчейна важное место занимают узлы-свидетели (Witness Node), которых значительно больше, чем валидаторов. Они не участвуют в создании блоков, но помогают транслировать по сети транзакции и данные.
В отличие от процедуры назначения валидаторами только доверенных лиц из сообщества Binance, принять на себя роль узла-свидетеля может каждый желающий. Для этого потребуется установить полную ноду на настольный ПК с Mac OSX, Linux или Windows, свободными 500 Гб на жестком диске (желательно SSD), 4-ядерным процессором и минимум 8 Гб оперативной памяти.
Перспективы Binance Chain
Пока что Binance Chain отлично справляется с возложенной на нее функцией быстрой обработки транзакций. Но поскольку с момента ее запуска прошел всего месяц, и пользователей у Binance DEX, которая должна давать основную нагрузку на сеть, не так много, окончательные выводы о ее устойчивости делать рано.
Кроме того, называть Binance Chain «убийцей Ethereum» также пока не стоит, поскольку на блокчейне последнего на сегодняшний день все еще остаются тысячи криптовалютных проектов. Поэтому переход 1–2 десятков из них на стандарт BEP2 — событие не такое уж и катастрофическое, как нам его пытаются представить СМИ. Покуда речь не пойдет о сотнях случаев миграции, Виталику Бутерину можно не переживать за свое детище (при условии продолжения его активного развития).
Кроме того, покуда Binance Chain не поддерживает смарт-контракты, это будет тормозить процесс перехода на него проектов, которые без этого функционала обойтись не могут. Правда, разработчики не исключают возможности добавления в блокчейн Binance новых функций в будущем, когда окончательно убедятся, что построенная инфраструктура сети будет хорошо справляться с возложенными на нее задачами.
Также стоит учитывать маркетинговые таланты тех, кто стоит за этим проектом — CZ прекрасно справляется с созданием хайпа вокруг своих продуктов. Так что будущее у блокчейна Binance точно есть. А вот удастся ли ему стать новым словом в децентрализованных технологиях — покажет время.
Источник
Binance Chain FAQ v0.5
What is Binance Chain, or Binance DEX?
Binance Chain is the blockchain initially developed by Binance and community. Binance DEX is the decentralized exchange module developed on top of the Binance Chain blockchain.
What is the design principle of Binance Chain?
The main focuses for the design of Binance Chain are:
- No custody of funds: traders maintain control of their private keys and funds.
- High performance: low latency, high throughput for a large user base, and high liquidity trading. We target to achieve 1 second block times, with 1 confirmation finality.
- Low cost: in both fees and liquidity cost.
- Easy user experience: as friendly as Binance.com.
- Fair trading: minimize front-running, to the extent possible.
- Evolvable: able to develop with forever-improving technology stack, architecture, and ideas.
What can you do on Binance Chain?
- Send and receive BNB
- Issue new tokens
- Send, receive, burn/mint and freeze/unfreeze tokens
- Propose to create trading pairs between two different tokens
- Send orders to buy or sell assets through trading pairs created on the chain
Will Binance Chain introduce more features and transaction types in the future?
Yes, Binance Chain team and community would cherish the technology advancements and recommended trends and strive to make circulation of assets and value easier and easier.
What is the native coin on Binance Chain?
The Binance Coin, BNB, is the native asset on Binance Chain. There are 200MM BNB coins in total. There will be no mining. The existing coin burns and freezes will still be in effect on the new Binance Chain blockchain.
The exact number of BNB coins will be destroyed based on the same number of BNB ERC20 tokens that have already been destroyed.
Since Binance Chain is live, all BNB ERC20 tokens will be swapped for Binance Chain coins. All users who hold BNB ERC20 tokens can deposit them to Binance.com, and upon withdrawal, the new Binance Chain native coins will be sent to their new wallets.
How can I register on Binance Chain/DEX and start trading?
There is no need to register. All you need is a Binance Chain address, which can be generated with any wallet that supports Binance Chain. Then you can trade BNB or other assets stored on that address.
How can I send orders on Binance DEX?
Order
On Binance DEX, you can send «new order» messages to buy or sell certain assets. You can also send «cancel» messages to cancel existing open orders.
You can use a wallet to send new orders and cancels. Binance DEX also provides API for automated trading.
In Binance DEX v1.0, the order message contains:
- Symbol: trading pair on the chain
- Side: buy or sell
- Price: only limit price orders are supported in Binance Chain v1.0
- Amount
- Time In Force: Binance DEX supports Immediate Or Cancel (IOC) and Good Till Expiry (GTE) orders. GTE orders can quote on the exchange until they are filled by the opposite orders satisfying the limit price, or canceled by client themselves, or expire after 72 hours after 00:00 (UTC). Check the «What is Order Expire » section of the FAQ for more information.
Network nodes examine orders to ensure they are valid. Once the orders are accepted, they are booked on the next block, and get matched accordingly.
What is Immediate Or Cancel order ?
Immediate Or Cancel is a special order type. Once the order is accepted into a block, Immediate Or Cancel orders only exist in this block round. The order may get filled to zero, or partially or fully filled by other orders, and then will become expired and removed from the order book right away. As a result, it will not be tradable in the next round of matching. A small fee will be charged for the network usage, if there is no fill at all for the order (deemed as no intention to trade).
Match
Binance DEX does all of its matching on the blockchain, i.e. all nodes perform the matches and expect the same result. This is to ensure the maximum transparency and to mitigate the chance for front-running, even from the block producers. The matching infrastructure is expected to evolve and grow in capacity as time progresses.
Binance DEX doesn’t do continuous matching as most centralized exchanges do. Instead, it matches using periodic auction matching for all the existing open orders received in the past and the latest blocks. The match logic is explained in more detail later.
Trade
Once the orders are filled, the corresponding assets will be automatically moved into buyers’ addresses. The confirmation is instant and no need to wait for further blocks (i.e. T+0 block). Buyers can use the bought asset right away, either send it to another address or trade it again.
What is Order Expire ?
Orders accepted by Binance DEX will either get filled with other orders or remain in the order book, but they will not stay on the order book forever. These orders will expire and be removed from the order book after the 1st midnight (UTC) after 72 hours once the order gets accepted. A small fee will be charged for the network usage, if there is no fill at all for the order (deemed as no intention to trade).
Where can I see my assets and trades?
You can always use wallets that support Binance Chain to check your asset balances, open orders, and (optionally) order/trade history. Binance Chain Explorer is another tool to check balances and transactions.
When can I see my order on the blockchain after I send it?
It depends. Normally, if you connect to one of the Accelerated Nodes, your orders should get accepted and booked into a block in 1-3 seconds. If the order price is marketable, the order will be filled and trades will come back in about similar time. If you send the order from far-way (self-setup full node), or there is heavy network traffic, the order may take longer to reach a Validator (block producer).
What is the Fee Structure?
Fees are charged and shared among the block producers (i.e. Validators) to run the network, in order to pay for the network usage and prevent abuse and attack. Since all user transactions, include transfer, new order, cancel etc, they are all recorded in blocks and chain state, the fee will be shared among different transactions. New orders are exempt from fees to encourage usage and larger trades will be charged more for their benefits from the liquidity provided in the network. Order Expire and Cancel are also charged with a fee if they fail to provide any liquidity. The current fee table is here
Besides the fees, no other gas will be charged.
Fees can be paid in any asset, but the network will charge BNB first and apply a discount if the address has BNB balance.
The fee is subject to periodical review and adjustment, after agreement from validators, via a proposal-vote procedure. See a fee-change proposal here
- Trade fee is calculated based on trade notional value, while fees for other transactions are fixed.
- It is free to send a new GET order, cancel a partially filled order, or expire a partially filled order.
- Non-Trade related transactions will be charged with a fee when the transactions happen, and can only be paid in BNB. The transaction will be rejected if the address does not have enough BNB.
- Trade-related transactions will be charged with a fee when an order is filled, or canceled/expired/IOC-expired with no fills. If there is enough BNB to pay, BNB fee structure will be used, otherwise, non-BNB fee structure will be used instead.
- If the whole order value and free balance for the receiving asset are not enough to pay the fee, all the receiving asset and its residual balance will be charged.
Can I see orders/balances of others or can other people see my orders/balances?
Yes, anyone can see anyone’s orders and balances if they know the corresponding addresses. Binance Chain is 100% transparent for transactions and balances.
Information provided through API and their usage
Is there any limit to using the API to send orders or check market data?
Yes, there are rate limits to ensure there is no waste or abuse of the network infrastructure.
Please check the API documentation.
What does Wallet and API cost to use?
No fee or commission at all (free to use).
What Market Data can I get?
The market data provided via Wallet and API are similar to Binance.com, including ticker data, order book, trade and Kline. They can be seen in the Wallet and read from REST or WebSocket API.
Please check the API documentation for details.
What are the tick size and lot size? Are they fixed?
Tick size is the minimum unit to increase or decrease for the price (in quote asset) of an order, while lot size is the minimum unit to increase or decrease for the quantity (in base asset) of an order.
They are not the same as on Binance.com. They can be queried from API or checked from Wallet UI.
Tick Size and lot size are not fixed. Binance Chain will automatically/periodically review the values to make sure proper order size and notional is applied.
Are there limits on notional value of an order?
The smallest order you can send for a trading pair is 1 lot size quantity at 1 tick size price. No other limits.
What is the decimal precision for prices and quantities on Binance Chain/DEX?
Amounts are represented as integers, and all coins have a fixed scale of 8.
This means that if a balance of 100000000 were to be exposed to a wallet integrator, this will represent a balance of 1 coin.
I forgot the private key for my address, how can I get it back?
Sorry, you cannot. Owner of the address takes full responsibility for the private key protection. Binance Chain and official wallets do not have your private key.
My private key got stolen by hackers, how can I recover my assets?
Sorry, you take full responsibility of your private key ownership and protection. Binance Chain and official wallets will not record, or transfer out your private key.
What is the Accelerated Node?
While users can submit transactions and most of the queries via normal, self-run full nodes.
Accelerated Node provides more secure and faster lines to access Binance Chain.
Accelerated Node is special infrastructure built around Validator to facilitate accelerated transaction routing and provide richer, faster user interfaces. There are always several Accelerated Nodes running at the same time around the world (owned by different organizations) and you are encouraged to choose one of them to use, or allow your Wallet choose one randomly.
For rapid API access, you’d better stay with one Accelerated Node to get better performance.
How can I issue an asset?
Anyone can pay a fee and issue an asset as Token on Binance Chain, as long as they provide proper information for the fields below, and then execute the command through the command line or http interfaces.
- Name: a description string of less than 21 characters
- Symbol: an identifier string less than 9 characters, which must be composed of [0-9A-Z]
- Total Supply: a positive number less than or equal to 90 billions
- Mint-able: whether the token can increase Total Supply in later time or not
What is the consensus algorithm used on Binance Chain?
Binance Chain uses BFT and PoS (upcoming) based consensus mechanism to produce blocks among a series of qualified Validators. This is similar to the architectures of several existing popular blockchain platforms such as EOS and NEO. The process for setting up validators among different entities on Binance Chain is currently being defined. More details will be shared at a later date.
Can I run a full node for Binance Chain?
Yes, you can. A full node contains all the information and application logic for Binance Chain. It can receive and broadcast blocks and transactions with other full nodes and even validators. The only exception is it will not participate in the consensus if the full node is not a Validator.
Does Binance Chain support Smart Contracts?
No. This was an intentional design decision to improve the performance of the system and eliminate having to support unnecessary features.
If you have certain must-have feature-s, it might be added as a native implementation instead of using smart contract.
Feel free to talk to Binance community.
How can I transfer tokens, such as Bitcoin, from other block chains onto Binance Chain?
Right now, there are 2 ways to transfer tokens cross-chain:
- via interoperability among different chains. After the latest “Archimedes” upgrade, BEP3 was introduced and it defines native transactions to support Hash Timelock Contract (HTLC) on Binance Chain and it also to defines the infrastructure standard and procedure to use HTLC for inter-chain atomic swap to easily swap tokens on different chains. Binance Chain development community has finished implementing its solution for BEP3 with BEP2 and ERC20 tokens and decided to open-source all of the key components, including:
- smart-contract solution that supports Atomic Peg Swap (APS) for Ethereum. Please note that this solution is already audited by 3rd party.
- deputy process written in GoLang that handles swap activities
Any developer is welcome to test the solutions in testnet and then use them in mainnet.
- via Binance.com. Binance,the largest cryptocurrency exchange, has issued a number of crypto-pegged tokens on Binance Chain (BEP2 token format): BEP2 Bitcoin, BEP2 BCH,BEP2 XRP, BEP2 LTC. Pegged tokens such as BEP2 Bitcoin, are 100% backed by the native coin in reserve. The reserve addresses are published for anyone to audit. Read this blog to learn about the reserved address. Users are free to convert between native and BEP2 Bitcoin via deposit/withdrawal. This has a higher degree of ease-of-use for most traders. More swap channels will be provided on partner wallets soon.
Atomic swap and this centralized approach are not exclusive to other decentralized approaches, which can also be implemented in parallel. There are many cross-chain solutions being developed and we are very interested in them.
Please do NOT try to transfer anything on existing network to Binance Chain testnet, you may experience loss by doing so, because testnet doesn’t run with real coins.
How is a trading pair created on Binance DEX?
The design philosophy of Binance DEX adheres to the idea that the most efficient and low cost way to perform trading and price-discovery is still to use single order book. This single order book is managed and replicated across all full nodes with the same, deterministic matching logic.
Simply allowing trading between two assets seems easy enough, however it is expensive for not only the network but also its users in long term (and liquidity costs can be much larger). In order to efficiently use the network, Binance Chain only list assets against BNB and other widely accepted market quote assets.
After an asset is issued, which costs a small fee, anyone can «propose» to all validators to list it against particular quote assets. Validators then vote to accept the proposal. A deposit is taken to prevent network abuse. Once the proposal is accepted, the owner of the base asset can list the trading pair.
For more information about this process please check the listing guide.
How would a third-party integrate with Binance Chain and Binance DEX?
A wallet provider may choose to only support the feature set of Binance Chain, which would just cover wallets, addresses, balances and transfers.
To improve their implementation further, they could choose to integrate Binance DEX which would add trading (order placement and cancellation), historical order and trade views, charts, etc.
Источник