Home Blog

How Bitcoin’s Biggest Protocol Upgrade Became Reality

0


The Critique

But despite initial excitement, Segregated Witness had its critics, too.

Concerns about the proposed protocol upgrade varied. Jeff Garzik, the former Bitcoin Core contributor — who would soon after found his own development company Bloq — did not consider SegWit a sufficient short-term scaling solution. Bitcoin XT lead developer Mike Hearn, meanwhile, was not convinced by the proposal at all: He dismissed the solution as an “accounting trick” and completely quit Bitcoin development shortly after. 

Jonathan Toomim, developer for alternative software client Bitcoin Classic, argued that the proposal was “ugly and awkward,” suggesting it would be better implemented as a hard fork. Even Bitcoin Core contributor Peter Todd had his concerns, in particular related to mining.

Most of these issues were deemed either solvable, unconvincing or worth the trade-off by the Bitcoin Core development team at large, however. Development of the soft-fork upgrade commenced.

The Development

Even though a version of Segregated Witness was already implemented on Elements, the code for the Bitcoin main chain version mostly had yet to be written, not only because it needed to be implemented as a soft fork, but also because SegWit for Bitcoin would enjoy a range of new features not present in Elements: for example, the “witness discount” necessary to increase the block size, new compatibility for the peer-to-peer network and more.

The concrete Bitcoin Improvement Proposal for SegWit, BIP141, was authored by Pieter Wuille, Ciphrex CEO Eric Lombrozo and independent Bitcoin Core contributor Johnson Lau. By early January 2016, in the midst of a heated scaling debate, these and other Bitcoin Core contributors launched an initial dedicated test network for the protocol upgrade, which was dubbed SegNet. Another two weeks later, this testnet was taken public for the wider Bitcoin development community to experiment with. And by March, SegNet was upgraded to support test versions of the lightning network.

Development continued for the months to come, taking in feedback from Bitcoin’s development community, fixing bugs, improving the codebase accordingly and launching several more iterations of SegNet(s).

Screen Shot 2017 08 18 at 00.47.28.original How Bitcoin’s Biggest Protocol Upgrade Became RealityThe SegWit GitHub page, where development and other issues are publicly visible for anyone to keep track of and contribute to.

Meanwhile, Bitcoin Core contributors also reached out to the broader Bitcoin industry, which over time led to a consistently growing list of companies and projects committing to supporting Segregated Witness.

By June, the Segregated Witness code counted 4,743 lines of code (including test code) and proposed removing or modifying 554 existing lines of Bitcoin Core code. After more review from several contributors, Bitcoin Core lead maintainer, Wladimir van der Laan, merged it into Bitcoin Core’s “master branch” by the end of that month.

The Meetings

At the same time that SegWit was being developed, block size tensions in the Bitcoin community were once again heating up. This time spearheaded by Bitcoin Classic, a number of Bitcoin companies and miners appeared determined to hard fork in order to increase the block size limit to 2 megabytes.

In what is perhaps best described as an emergency meeting, once again in Hong Kong, several Bitcoin Core contributors, mining pool operators and other Bitcoin industry members met to discuss the scaling issue.

The meeting led to an agreement that came to be known as the “Bitcoin Roundtable Consensus” (or the “Hong Kong Agreement”). The Bitcoin Core contributors present at the meeting agreed to work on a block size limit increase hard fork to be proposed to the Bitcoin Core development team and the wider Bitcoin community. The miners, in turn, agreed to run a SegWit release in production by the time such a hard fork would be released in a version of Bitcoin Core. The crisis seemed to have been averted — even though it quickly became clear that not everyone was happy about the agreement.

Several months later, an even bigger group of Bitcoin Core contributors and mining pool operators met in California. The Bitcoin Core contributors present at this meeting left convinced that Segregated Witness would be activated by the miners.

The Release

About six months behind on the initial schedule — the release was originally set for April — Segregated Witness was officially introduced October of 2016, in Bitcoin Core version 0.13.1. The protocol upgrade was also implemented in several other Bitcoin implementations, like Bitcoin Knots and Bcoin.

Using an activation method called “VersionBits” (BIP9), designed to minimize network disruption, 95 percent of miners (by hash power) had to signal support for SegWit to activate on the Bitcoin network. This miner signaling was to start on November 15th. Meanwhile, users were encouraged to upgrade their clients, which over time, it seemed, many did.

Screen Shot 2017 08 18 at 01.16.12.original How Bitcoin’s Biggest Protocol Upgrade Became RealityAs of August 2017, the vast majority of the Bitcoin network consists of SegWit-ready nodes.

Based on the meetings with mining pool operators, as well as a general conviction that SegWit would be a boon for Bitcoin, many expected that the soft fork would be activated rather quickly.

The Politics

But that’s not what happened. As it turned out, several attendees of the Hong Kong Roundtable Consensus disagreed over what they had actually signed onto.

Bitmain co-CEO Jihan Wu, in particular, indicated he would only be willing to activate SegWit if the Bitcoin Core development team also implemented a hard fork to increase the block size limit in their codebase. Other mining pools, including F2Pool, HaoBTC and bitcoin.com didn’t signal support for the soft fork either.

Screen Shot 2017 08 18 at 01.19.14.original How Bitcoin’s Biggest Protocol Upgrade Became RealityBitmain (and subsidiary AntPool) demand a hard fork block size limit increase in return for SegWit activation.

Moreover, a new Chinese mining pool emerged: ViaBTC. With close ties to Bitmain, ViaBTC alone garnered enough hash power to single-handedly block SegWit activation. And its operator, Haipo Yang, positioned himself as a staunch critic of the proposed protocol upgrade.

SegWit activation seemed far away.

The UASF

shaolinfry.original How Bitcoin’s Biggest Protocol Upgrade Became RealityThe avatar of pseudonymous Bitcoin and Litecoin developer Shaolinfry

In February 2017, a little over three months after the official release of SegWit, a new opportunity presented itself.

The pseudonymous developer “Shaolinfry,” who had previously contributed to Litecoin, dropped a new proposal in the Bitcoin development mailing list and the popular bitcointalk.org forum: a “user activated soft fork” or “UASF.”

Shaolinfry argued in his email that the hash power activation mechanism that had become the standard for soft forks was never intended to be a “vote.” “[T]he signaling methodology is widely misinterpreted to mean the hash power is voting on a proposal and it seems difficult to correct this misunderstanding in the wider community,” he wrote.

Shaolinfry proposed an alternative: a user activated soft fork (UASF). Instead of hash power activation, a user activated soft fork would have a “‘flag day activation’ where nodes begin enforcement at a predetermined time in the future.” As long as such a UASF is enforced by an economic majority, this should compel a majority of miners to follow (or activate) the soft fork.

The idea immediately generated buzz throughout Bitcoin forums and social media. And when former BTCC COO and outspoken SegWit proponent Samson Mow set up a bounty fund for the development of a UASF software implementation, it seemed like the proposal could become a reality.

The Patented Technology

In the first week of April 2017, Gregory Maxwell dropped what was widely considered a bombshell revelation on the Bitcoin development mailing list.

Maxwell claimed to have reverse-engineered a specialized ASIC-mining chip and found that it included patented AsicBoost technology. What’s more, Maxwell revealed that covert use of the technology would be incompatible with a soft-forked version of SegWit. “An incompatibility would go a long way to explain some of the more inexplicable behavior from some parties in the mining ecosystem,” he noted.

While no specific ASIC-manufacturer was mentioned in Maxwell’s email, Bitmain acknowledged that it had implemented the patented technology in their mining chips — though it denied having used it on Bitcoin’s mainnet.

Either way, for some users the revelation added to the desire to have the Segregated Witness soft fork activated on the Bitcoin network. And, as hash power activation seemed even less likely now, a user activated soft fork was increasingly looking like the solution to accomplish that.

The BIP148 Proposal

Shortly after proposing the general idea of a UASF, Shaolinfry and about a dozen other members of the Bitcoin community opened a UASF channel on the Bitcoin Core Community Slack.

The channel became a central point of discussion and organization for the initiative. A flag date was picked, initially for October 1, then later moved to August 1 to better account for potentially low hash power support. Shaolinfry authored a concrete Bitcoin Improvement Proposal: BIP148Open Dime founder Rodolfo Novak also established an informational website to promote the idea.

The initial plan was to get exchanges and other businesses on board with the UASF. If these companies would support the proposal and enforce the soft fork, it would go a long way in realizing a desired economic majority.

But the UASF did not gain the level of traction some of its proponents hoped for. While a number of companies and some developers seemed onboard with BIP148, no major exchanges or other businesses declared support and some even spoke out against the initiative.

And, by mid-April, Gregory Maxwell on the Bitcoin development mailing list stated that he believed BIP148 to be a bad idea as well. Coming from one of the most respected and influential Bitcoin Core contributors, his rejection of the initiative had an impact: This version of a UASF appeared to be losing all momentum.

Instead, some began to work on an alternative UASF: BIP149.

The Altcoins

Many altcoins are based on Bitcoin’s codebase. This means that the SegWit code, while developed for Bitcoin, is largely compatible with these alternative cryptocurrencies. Unsurprisingly, therefore, several altcoins decided to implement SegWit. The first to activate Segregated Witness was Groestlcoin as early as January 2017.

But other coins were struggling. Litecoin, Vertcoin and Viacoin all seemed to have been caught in Bitcoin’s political game. These coins relied on the same miners as Bitcoin, to a large extent, and most were not signaling support for the upgrade.

This was allegedly due to technical issues or other stated reasons, but, as Viacoin lead developer Romano noted, “It seems more likely they want to refrain from activating Segregated Witness on altcoins because that would give them even less reason to hold off activation on Bitcoin.”

By April of 2017, this attitude led Litecoin creator Charlie Lee to advocate for a user activated soft fork on “his” coin. His initiative was eagerly picked up among Litecoin users; it didn’t take long for Litecoin miners, Lee, and other members of the Litecoin ecosystem to arrange an online meeting, the result of which was the Litecoin Global Roundtable Resolution. In exchange for some commitments by Lee, miners agreed to activate SegWit. ShaolinFry and others considered the UASF effort a success.

Within a week after SegWit activation on Litecoin, an unknown person made a bold move. He (or she) sent $1 million worth of the cryptocurrency to a SegWit-protected address, challenging anyone to steal the funds if they could. To this date, the bounty remains untouched, further strengthening confidence in the technology.

The New York Agreement

Meanwhile, the block size debate raged on. Another software client to increase Bitcoin’s block size limit per hard fork, Bitcoin Unlimited gained traction among Bitcoin’s mining community. Endorsed by Bitmain’s Wu in particular, the project appeared to be heading toward a potential (and controversial) hard fork.

This looming threat, and the possibility of a “split” in Bitcoin’s blockchain, was reason for DCG founder and CEO Barry Silbert to organize a meeting ahead of the Consensus 2017 conference in New York. Initially announced on a private email list for Bitcoin entrepreneurs and other prominent industry members, the meeting would bring together a significant chunk of the Bitcoin industry, including miners — though, notably, no Bitcoin Core contributors.

The outcome of that meeting is typically referred to as the “New York Agreement.” Participants agreed on what they deemed to be a compromise between those who wanted to increase Bitcoin’s block size with a hard fork and those who preferred SegWit. Based on an idea originally proposed by RSK founder Sergio Demian Lerner, SegWit would be activated under specific conditions, while there would also be a hard fork to double Bitcoin’s “base block size limit.”

Screen Shot 2017 08 18 at 01.33.23.original How Bitcoin’s Biggest Protocol Upgrade Became RealityThe New York Agreement and its two concrete points of action

But while it sufficed to say not everyone in the Bitcoin ecosystem supported the agreement, one specific problem stood out in particular. The conditions for SegWit activation were largely incompatible with those proposed by the Bitcoin Core development team, for which the code was already widely adopted by Bitcoin users.

The Intolerant Minority

Screen Shot 2017 08 18 at 01.36.47.original How Bitcoin’s Biggest Protocol Upgrade Became RealityImagery by Samson Mow in support of the BIP148 UASF

While the BIP148 UASF seemed to have lost a lot of steam in favor of BIP149, not everyone had given up on this first UASF proposal completely.

Shaolinfry had proposed the concept under the assumption that it would be backed by an economic majority and thought it should be aborted before the flag day otherwise. But a group of users on the UASF Slack channel had a different idea. Some of them — including Bitcoin Core and Bitcoin Knots developer Luke Dashjr — were contemplating activating the soft fork regardless of what the rest of the Bitcoin ecosystem would do. Even if they were a minority, and even if they’d effectively spin themselves off into a new altcoin, they would move forward with the upgrade.

Around mid-May, Alphonse Pace linked this determination to a game-theoretical concept described by statistician and author Nassim Nicholas Taleb: the “intolerant minority.” In short, this idea presupposes that even an economic minority should be able to compel miners to activate the Segregated Witness soft fork. They would unnecessarily lose a chunk of their “customer base” (Bitcoin users) otherwise.

Seemingly fuelled by the AsicBoost scandal, the SegWit activation on Litecoin and discontent regarding the New York Agreement — and this time backed by game theory — BIP148 support started to snowball into somewhat of a viral phenomenon on social media and message boards once again.

Several more articles discussed the growing potential of the UASF and much debate on social media, YouTube channels other discussion platforms followed. Meanwhile, Eric Lombrozo also threw his weight behind the effort, and UASF hats distributed by Samson Mow became the rage. Inspired by the codename for an upcoming Electrum Wallet release, August 1 was dubbed “Bitcoin Independence Day.”

The only problem: activation methods for BIP148 and the New York Agreement were as incompatible as the New York Agreement was with the activation methods proposed by the Bitcoin Core development team.

The Kludge

It was Bitmain Warranty engineer James Hilliard who came to the rescue. Hilliard proposed a slightly complex but clever solution that would make everything compatible: Segregated Witness activation as proposed by the Bitcoin Core development team, the BIP148 UASF and the New York Agreement activation mechanism. His BIP91 could keep Bitcoin whole — at least throughout SegWit activation.

As long as a majority of miners would activate BIP91 before August 1, all Bitcoin nodes should remain part of the same network. It was a relatively small time window, since the solution was only proposed by late May, but Jeff Garzik, the main developer attached to the New York Agreement, adopted the proposal and planned to release the software client resulting from that agreement weeks before August 1. It was doable.

The Activation

2017 08 18 01.51.51.original How Bitcoin’s Biggest Protocol Upgrade Became RealityInformational website XBT.eu at the time of BIP91 lock-in

By mid-July, Bitcoin miners had missed their window to activate SegWit through the method proposed by the Bitcoin Core development team in time to be compatible with BIP148. As a result, markets seemed to get nervous about a potential “split” between a BIP148 chain and a non-BIP148 chain. In the span of only a week, bitcoin’s exchange rate tumbled from around $2500 to $1900: the lowest it had been in well over a month.

Possibly startled by these market movements, Bitcoin’s mining community started to rapidly signal support for BIP91, even ahead of the schedule set forth by the New York Agreement. And on July 20, ten days before BIP148’s August 1 flag day for activation, BIP91 locked in. It activated a little over two days later.

With BIP91 locked in, it was only a matter of time before Segregated Witness itself would lock in. This ultimately happened on August 9 — the point of no return having been reached on August 8.

Bitcoin would “officially” get SegWit after another two-week grace period.

The Adoption

logo.original How Bitcoin’s Biggest Protocol Upgrade Became RealitySegregated Witness logo designed by Albert Dros

The final step for Segregated Witness is, of course, actual user adoption. Since SegWit has only just activated at the time of publication of this article, it’s impossible to know how quickly and how much the upgrade will actually be used. Some critics, perhaps most notably Garzik, predict that widespread adoption could take up to a year or even longer. Others, including a number of wallet and library developers, think they can utilize the feature within weeks, or they are prepared already. And other technologies that depend on the upgrade, such as the Lightning Network, but also Merkelized Abstract Syntax Trees (MAST), atomic swapsfaster transaction signing for hardware wallets, and TumbleBit in payment processor mode, are in various stages of development as well.

It’s been a long road, but anyone who wants to use Segregated Witness should now be able to do so, starting today.



Source link

Chasing Profit? Bitcoin Miners Swap Networks As Difficulty Swings

0


Since bitcoin cash split from the bitcoin blockchain, miners have had a choice: which of two blockchains to mine?

At play in their considerations are two factors: ideology and profitability. But while it’s possible some miners are choosing bitcoin or bitcoin cash based on preference, a certain contingent seem to be following the money.

How do we know? At block 481,824 yesterday, the bitcoin cash blockchain saw a notable difficulty adjustment.

At the time, blocks were being found on bitcoin cash at a rate of about one 1-2 minutes, or less. As a result, the difficulty went up by 300%, the maximum allowed under the difficulty adjustment rules.

Both bitcoin and bitcoin cash adjust difficulty downward every 2,016 blocks, though in the case of bitcoin cash, the length of time this takes varies depending on how long it takes blocks to be discovered. If the previous 2,016 blocks took less than two weeks, difficulty goes up, if more than two weeks, difficulty goes down.

Changing the dynamic between the chains is that because of this unique rule and yesterday’s change, bitcoin cash is now much less profitable to mine than bitcoin.

And miners seem to be responding, as a lot of mining hash power seems to have left bitcoin cash and moved to bitcoin. At its peak, bitcoin cash had 44% of all hash power compared to bitcoin’s 56%.

As of this writing, BCH has about 26% compared to BTC’s 74%, according to data from fork.lol, a data site that has sprung up to cover the narrative.

Screen Shot 2017 08 23 at 9.40.13 AM Chasing Profit? Bitcoin Miners Swap Networks As Difficulty Swings

As of this writing, bitcoin is averaging slightly less than six blocks per hour over the last eight hours, while bitcoin cash is averaging a little over one block per hour in the same time period.

The next difficulty adjustment on either chain is expected to be when bitcoin hits block 481,824, on August 24.

Escalator image via Shutterstock

The leader in blockchain news, CoinDesk is an independent media outlet that strives for the highest journalistic standards and abides by a strict set of editorial policies. Have breaking news or a story tip to send to our journalists? Contact us at [email protected].



Source link

Reward-based Social Media Platform Yours Switches from Litecoin to Bitcoin Cash

0


Reward based Social Media Platform Yours Switches from Litecoin to Bitcoin Cash 1068x1068 Reward based Social Media Platform Yours Switches from Litecoin to Bitcoin Cash



News

On August 22 the creator of the Yours network, Ryan X Charles, announced his blockchain based media platform is switching over from litecoin to bitcoin cash. The team just recently switched from the legacy bitcoin chain to litecoin because of the protocol’s inability to process micro-transactions.

Also read: Bitcoin Software Wars: The Battle Between Nodes, Hashpower, and Developers

The Yours Network Switches from Litecoin to Bitcoin Cash for Cheaper Micropayments

YOURSA 300x100 Reward based Social Media Platform Yours Switches from Litecoin to Bitcoin CashThis week Ryan X Charles surprised the cryptocurrency community with a new announcement. The creator of the Yours network explained his development team decided the other day they would be going “full on-chain” with the bitcoin cash protocol. Yours is a social media application that gives micro-payment incentives for content such as articles with pictures, stories, audio, and video.

When Charles revealed the soft launch of Yours two months ago, he said he had difficulty with micro-transactions because of bitcoin’s fees. After the soft launch, the development team decided to utilize litecoin with the platform to lessen network fees and created a better experience for users. Charles changed his mind again and says he’s excited to switch to bitcoin cash because it will allow all the “product experiments we’ve been dreaming of.”

“We’re going to be the biggest company on bitcoin cash in three weeks,” explains Charles.

‘Reducing Code Complexity by Going On-Chain’

Following the announcement, news.Bitcoin.com reached out to Charles and asked him why they switched from litecoin to bitcoin cash. “Litecoin has fees of about five cents and no plan to scale on-chain,” Charles explains. “Litecoin will eventually face the same problem as bitcoin.

We spent over a year developing a trustless payment channel network similar to the Lightning Network except it’s not dependent on Segwit. We’ve realized that we can dramatically reduce our code complexity by going on-chain with bitcoin cash.

We then asked the Yours developer if the platform’s users will see a bitcoin cash implementation in three weeks. “You will see it a lot sooner than three weeks,” Charles details. In addition to keeping the platform on-chain, the developer explains that the Yours protocol can reduce its code size by at least 10x. “We were able to archive our micro-payments system – we don’t currently need it on BCC. We can broadcast our transactions on-chain with low fees, even just one cent,” Charles tells news.Bitcoin.com.

The Yours Creator Wishes Bitcoin the Best of Luck

As for bitcoin and the protocol’s upcoming Segwit implementation the Yours developer says he hopes it all works out.

“We wish them the best of luck. Unfortunately, bitcoin fees are too expensive for us, even with payment channels, because the cost of onboarding and offboarding users is too high,” Charles adds.

What do you think about the Yours network implementing bitcoin cash instead of litecoin? Let us know in the comments below.


Images via Shutterstock and Yours.


 Need to calculate your bitcoin holdings? Check our tools section.



Source link

Bitcoin Prices Are Up Over $100 Already Today

0


coindesk bpi chart 6 1 Bitcoin Prices Are Up Over $100 Already Today

The average price of bitcoin across global exchanges in trending up, having already climbed over $100 during today’s trading.

At press time, bitcoin prices were trading around $4,265, a figure that was up nearly $130 from the day’s open of $4,137. The uptick, while slight in comparison to the cryptocurrency’s 300% appreciation in 2017, nonetheless comes during a period in which bitcoin has had difficulty building support above $4,000.

Over the last seven days, bitcoin has dipped below $4,000 several times, most recently during August 22’s trading session.

Overall, bitcoin appears to be settling into a period of sideways trading after rising 55% over the last month and nearly 90% over the last three months, according to data provider CoinMarketCap. By contrast, this week, bitcoin is up only 2.3%.

As such, it remains to be seen whether the market lull is merely a pause in the rally, or a broader sign of potential fatigue in the nascent asset class.

Suggesting the former is that the increase also coincided with a broader movement of capital into alternative cryptocurrencies, with the value of the entire asset class reaching an all-time high of more than $150 billion earlier today.

$100 bill image via Shutterstock

The leader in blockchain news, CoinDesk is an independent media outlet that strives for the highest journalistic standards and abides by a strict set of editorial policies. Have breaking news or a story tip to send to our journalists? Contact us at [email protected].



Source link

$150 Billion: Total Cryptocurrency Market Cap Hits New All-Time High

0


Cryptos ATH 23 Aug $150 Billion: Total Cryptocurrency Market Cap Hits New All Time High
Via CoinMarketCap

The combined value of all publicly traded cryptocurrencies has set a new record, surpassing $150 billion for the first time today.

At press time, the value of ether, bitcoin and more than 800 other blockchain-based assets had reached a high of around $154 billion, according to CoinMarketCap.

Overall, the figure indicates that the cryptocurrency market continues to grow at a steady pace. At $154 billion, the market is up 13 percent over the last seven days, 67 percent over the last month and an astounding 1,240 percent year-over-year.

What might be most notable, however, is that the new high came during a trading session in which there were no individual all-time highs for major cryptocurrencies.

At $4,275 and $324, bitcoin and ether were edging up at press time, though still short of their highs above $4,500 and $400, respectively. Further, the new combined record came in spite of the fact there were no big gains in litecoin, monero or dash, some of the more popular alternative cryptocurrencies among traders.

The lone breakout, in fact, was Ripple’s XRP token – a cryptographic asset issued by a San Francisco startup seeking to build enterprise blockchain solutions. On the day’s trading, XRP was up more than 50% to $0.28, a movement that built on impressive gains yesterday as well.

Disclosure: CoinDesk is a subsidiary of Digital Currency Group, which has an ownership stake in Ripple.

Mountain peak image via Shutterstock

The leader in blockchain news, CoinDesk is an independent media outlet that strives for the highest journalistic standards and abides by a strict set of editorial policies. Have breaking news or a story tip to send to our journalists? Contact us at [email protected].



Source link