要幾多 coinbase 工程師嚟介紹 segwit.
在2月 5, coinbase cryptocurrency 交換放咗一條鳴叫, 告知, “開發團隊處於測試 segwit 的最後階段”, 和 “sending and receiving bitcoins with SegWit support will be available in a few weeks”.
Coinbase announced the work on SegWit in early December last year, answering one of the frequently asked questions from users “how many Coinbase engineers are needed to introduce SegWit.”
在12月 16, Coinbase vice-president Dan Romero published a post on the official Coinbase blog, informing that the introduction of SegWit is planned for 2018, and at the moment the team is “working on the safe implementation of SegWit.” Romero emphasizes that “in the priority – security and efficient work of the exchange”, and does not speak about specific terms.
然而, on the wave of the December “bitcoin-mania”, users discontent grew with the network’s busyness: 交流, including Coinbase and GDAX, were not able to cope with record demand and went offline, fees and transaction confirmation time were increasing. In mid-January, customers sent Coinbase CEO Bryan Armstrong a petition that collected more than 12,000 signatures, calling for support for SegWit as a priority for 2018. Jameson Lopp, the leading engineer of the BitGo crypto wallet, called for the abandonment of Coinbase services: “It is not a discovery that a significant cause of overloads in the Bitcoin network is caused by such popular services as Blockchain.info, Coinbase and Gemini, which inefficiently use block space. If you do not want to contribute to this, do not use it. ” Armstrong again responded to the charge, 講, “Coinbase is working on packetizing transactions, SegWit and a number of other strategies to eliminate stagnation in the network.”
SegWit aims to solve the scalability problem by reducing the size of transactions. The protocol was proposed by the developer of Blockstream Peter Wellle, and the softphone that made possible the use of SegWit, took place in the network Bitcoin in August last year. Among the services that already support the technology – wallets Ledger, Trezor, Electrum and Samourai Wallet, as well as Crypto-exchanges HitBTC, ShapeShift and Bitstamp. In order to understand how SegWit helps the Bitcoin network, it is necessary to imagine at the simplest level the everyday routine of bitcoin-transactions that travel through the Bitcoin network in the form of “information packets”, and their authenticity and accuracy are checked by nodes. If all the nodes agree that the transaction is correct, then a consensus is reached. The transaction itself consists of two parts: input and output – “input” 和 “exit”, from which the first part is responsible for “unlocking”, 噉係, obtaining bitcoins (and contains information about the sender), and the second – for “locking” for potential future shipment. The input data also contains a signature certifying the correspondence of the private and public keys.
SegWit technology (Segregated Witness) splits the transaction into two parts and transfers the signature (“witness”) necessary to “unlock” the obtained bitcoins, to the end of the transaction, outside the main block. 在這種情況下, the main unit contains data about the recipient and the sender, 以及該 “witness” contains scripts and signatures, 噉係, information that is necessary to confirm the transaction, but then will never be used. Taking into account that the signatures occupied about 60% of the transaction volume, their isolation significantly reduces the block size, thereby increasing the network bandwidth and reducing the cost of transaction charges.
作者: 理查德 Abermann