Earlier this 12 months, Weikeng Chen and his companions at enterprise agency L2 Iterative determined to shift their consideration to the effervescent Bitcoin ecosystem. Chen, a Chinese language native, had taken discover of the rising curiosity in Bitcoin growth from a number of giant actors within the mining house who began backing completely different tasks within the Ordinals and layer 2 house.
“I by no means actually realized Bitcoin had a growth neighborhood,” he says, half-joking.
Quick ahead to final week, an open-source initiative led by himself, with sponsorship from infrastructure firm Starkware, has achieved the first implementation of a zero-knowledge verifier utilizing Bitcoin script.
In an trade the place important breakthroughs are few and much between, these concerned within the effort are gushing concerning the significance of this milestone. Zero-knowledge proofs, they argue, are the important thing to unlocking Bitcoin’s programmability and scaling its use globally.
Behind this achievement is the outstanding journey of an outsider who picked up Bitcoin growth simply six months in the past and has now coded arguably its most superior piece of software program. I interviewed Weikeng Chen to delve into his motivations, his collaboration with Starkware round OP_CAT and STARKs, and his views on this new period of Bitcoin growth.
Ranging from scratch
A PHD graduate from UC Berkeley with a specialization in cryptography, Chen defined he started looking for a chance to contribute his technical expertise to the trade to higher place his agency with potential buyers and corporations. Regardless of his intensive engineering expertise, he rapidly realized that assets have been scarce and the training curve was steep. “Loads of the fabric out there may be outdated and doesn’t replicate the present state of growth.” His affinity for zero-knowledge expertise ultimately led his analysis to deal with Bitcoin’s means to carry out the computations required for verifying zero-knowledge proofs.
As one rabbit gap led to a different, Robin Linus’ work on the novel computing paradigm of BitVM got here onto his radar. within the potential of utilizing fraud proofs to implement zero-knowledge methods suitable with Bitcoin, he began poking across the white paper and observed some points with among the ideas concerned within the system. “I despatched a message to Robin asking a number of questions on BitVM. My understanding of BitVM from that whitepaper was certainly useless flawed. I keep in mind Robin’s first response was to ask me who had instructed me this,” he recollects laughing. This interplay sparked a short however productive collaboration between Chen, Linus, and different researchers as they iterated on the unique concept and regarded for methods to optimize it.
“It was apparent to me that this methodology might be used to confirm zero-knowledge proof so my work rapidly went within the route of implementing a SNARK verifier.”
A verifier is a cryptographic software that permits the verification of zero-knowledge proofs on the Bitcoin community.
The OP_CAT alternative
Across the similar time, a staff at zero-knowledge trade big Starkware was paying shut consideration to the rising exercise popping out of the Bitcoin neighborhood. For some, it was a very long time coming. Starkware founder Eli Ben-Sasson was arguably the first particular person to debate zero-knowledge expertise within the context of cryptocurrencies at an early Bitcoin convention. Nearly a decade later, Starkware’s analysis and ZK-STARK expertise function the muse of a rising variety of purposes within the house.
“Again in 2013, after I recommended utilizing validity proofs to scale Bitcoin, I hoped Satoshi would possibly nonetheless be round and would make it occur sooner. Due to cryptography visionaries like Weikeng Chen and Bitcoin OP_CAT researchers like Andrew Poelstra and Ethan Heilman, my 11-year outdated dream feels now inside attain,” Ben-Sasson commented.
Final month, the corporate introduced they have been starting the deployment of quite a few initiatives centered on closing the expertise hole between Bitcoin and zero-knowledge proofs. A $1,000,000 utility grant was provided in direction of analysis and exploration into the potential of the OP_CAT smooth fork proposal.
The announcement was marked by notable enthusiasm, leaving some to marvel what was driving this optimism. Till lately, the prospects of zero-knowledge expertise on Bitcoin had been largely an afterthought — one other OP code which may by no means see the sunshine of day. Certainly, the problem of getting consensus over smaller adjustments to the Bitcoin codebase made it appear unlikely one thing extra advanced would ever come to move.
Primarily based on conversations with Starkware contributors, it was round Might once they caught wind of Weikeng’s progress on BitVM and the temper shifted dramatically. As it will prove, the developer had already set his sights on the corporate’s Circle STARKs expertise. In a paper launched a few months in the past, Chen had already recognized the latter as a “Bitcoin-friendly proof system.”
After some forwards and backwards, each events agreed to return collectively and rise up a joint effort devoted to an open-source implementation of a STARK verifier utilizing the OP_CAT primitive. “I knew it might be executed. We simply wanted to place all of the items collectively,” suggests Chen. The “Bitcoin Wildlife Sanctuary” was born.
Two months later, the mission seems to have reached its objective due to the collaboration of different builders like Pingzhou Yuan, one other early BitVM contributor. Late morning final Friday, Chen jumped into the mission’s Telegram group to interrupt the information to different individuals: “I feel I completed the job!”
Following profitable native checks, the developer broadcasted a sequence of transactions to Bitcoin’s Signet testnet community that will execute all the script. To optimize on-chain utilization, the STARK proof, primarily based on Starkware’s open-source Stwo implementation, is cut up into concurrent transactions chained collectively utilizing an OP_CAT primarily based covenant.
At 6:29AM on July 12, 2024, the ultimate transaction was confirmed on the Signet community, signaling what proponents imagine might be the start of a brand new period of growth on Bitcoin.
“This was an incredible effort and took a major period of time,” mentioned Chen. “We began with nothing. There’s no details about ZK proofs on Bitcoin. There’s no info relating to the mathematical operations to comply with. We needed to construct the total stack, which ultimately led to the implementation of the STARK verifier.”
Inspiring a brand new growth path
Whereas the outcomes need to be celebrated, Chen is insistent the job will not be executed. Requested if he was optimistic about his work creating the muse for brand new scaling protocols like rollups on Bitcoin, the developer was fast to tamper expectations.
“The concept roughly works however the proof-of-concept will not be production-ready. Validity proofs additionally take quite a lot of block house which could become costly sooner or later.”
Contributors at Starkware acknowledge the challenges forward however are assured the success of the mission represents “a monumental leap ahead” in direction of Bitcoin scaling options that may leverage their ZK rollup expertise.
One factor is for certain, the collaboration is prone to additional strengthen arguments in favor of a possible OP_CAT smooth fork. So as to put collectively the verifier implementation, Chen says he needed to develop a dependable framework for covenants utilizing CAT which might serve to spotlight the flexibility of the script enchancment proposal. He believes different builders within the ecosystem can play together with his code and are available to the identical conclusion he did relating to its advantages.
“I don’t suppose there may be quite a lot of threat as soon as we now have developed greatest practices. There should not that many locations the place that is going to go flawed. We now have a transparent demonstration that OP_CAT will be tailored to varied covenant tasks in a protected method.”
When questioned about his intention to contribute to a future activation course of, the developer readily admits he’s not acquainted sufficient but with the entire dynamics round Bitcoin open-source growth. Subsequent, he intends to share his progress with members of the event mailing listing and hopes others will have the ability to contribute evaluation, and supply suggestions on his work.
Reflecting on his expertise to date, Chen instantly factors out the significance of making a fertile atmosphere for brand new builders coming into the ecosystem. He believes many proficient builders are passing on the chance to construct on Bitcoin due to the dearth of a cohesive imaginative and prescient.
“There may be not a transparent sense of route proper now which leaves contributors perplexed about their means to influence the longer term. Hopefully, the emergence of recent instruments and primitives can enhance this example so Bitcoiners are allowed to dream once more.”