Earlier this 12 months, Weiken Chen and his companions at enterprise capital agency L2 Iterative determined to show their consideration to the effervescent Bitcoin ecosystem. Chen, who’s Chinese language, has observed rising curiosity in Bitcoin growth from a number of massive gamers within the mining house, who’ve begun supporting completely different initiatives within the Ordinals and Layer 2 sectors.
“I by no means actually realized there was a growth group for Bitcoin,” he mentioned, half-joking.
Quick ahead to final week, and an open supply initiative he leads, with sponsorship from infrastructure firm Starkware, carried out the primary zero-knowledge validator utilizing Bitcoin scripts.
In an business the place main breakthroughs are few and much between, these concerned within the effort gushed concerning the significance of this milestone. They consider that zero-knowledge proofs are the important thing to unlocking Bitcoin’s programmability and scaling its world use.
Behind this achievement is the extraordinary journey of an outsider who started growing Bitcoin six months in the past and has now written what’s arguably probably the most superior software program. I interviewed Weiken Chen to delve deeper into his motivations, his work with Starkware round OP_CAT and STARKs, and his ideas on a brand new period of Bitcoin growth.
Begin from scratch
Chen, a UC Berkeley PhD graduate in cryptography, defined that he started on the lookout for alternatives to contribute his technical abilities to the business with a view to higher place his firm to potential traders and corporations. Regardless of his in depth engineering expertise, he rapidly realized that sources had been scarce and the training curve was steep. “Numerous the fabric is outdated and doesn’t mirror the present state of growth.” His love for zero-knowledge know-how in the end led his analysis to give attention to Bitcoin’s potential to carry out the calculations required to confirm zero-knowledge proofs.
As one rabbit gap results in one other, Robin Linus’ work on the novel computing paradigm of BitVM caught his consideration. He was within the potential of utilizing fraud proofs to implement a zero-knowledge system appropriate with Bitcoin, and started learning the white paper and observed some points with a number of the ideas concerned within the system. “I despatched Robin a message asking some questions on BitVM. My understanding of BitVM from that white paper was certainly utterly mistaken. I bear in mind Robin’s first response was to ask me who informed me this. It is one thing,” he recalled with a smile. This interplay sparked a quick however productive collaboration between Chen, Linus, and different researchers, who iterated on the unique concept and regarded for tactics to optimize it.
“It was apparent to me that this method could possibly be used to confirm zero-knowledge proofs, so my work rapidly moved within the path of implementing a SNARK verifier.”
A validator is a cryptographic instrument that may confirm zero-knowledge proofs on the Bitcoin community.
OP_CAT Alternatives
Across the similar time, a workforce at zero-knowledge business large Starkware was paying shut consideration to rising exercise within the Bitcoin group. For some, that is a very long time. Starkware founder Eli Ben-Sasson was arguably the primary particular person to debate zero-knowledge know-how within the context of cryptocurrency at early Bitcoin conferences. Almost a decade later, Starkware’s analysis and ZK-STARK know-how have grow to be the premise for a rising variety of functions on this area.
“Again in 2013, once I advised scaling Bitcoin utilizing proofs of validity, I hoped that Satoshi Nakamoto would possibly nonetheless be round and make this occur quicker. Because of cryptography visionaries like Weikeng Chen and folks like With Bitcoin OP_CAT researchers like Andrew Poelstra and Ethan Heilman, my 11-year dream is now inside attain.
Final month, the corporate introduced that they had been starting to deploy a number of initiatives centered on closing the know-how hole between Bitcoin and zero-knowledge proofs. A $1,000,000 utility grant is offered to analysis and discover the potential of the OP_CAT delicate fork proposal.
The information generated lots of enthusiasm, leaving some questioning what was driving the optimism. Till lately, the prospect of Bitcoin’s zero-knowledge know-how was principally an afterthought—one other working code that may by no means see the sunshine of day. The truth is, the problem of reaching consensus on smaller modifications to Bitcoin’s code base makes one thing extra complicated appear unlikely.
In accordance with conversations with Starkware contributors, sentiment modified dramatically round Might once they heard about Weikeng’s progress on BitVM. It seems that builders have already set their sights on the corporate’s Circle STARKs know-how. In a paper revealed just a few months in the past, Chen had recognized the latter as a “Bitcoin-friendly proof system.”
After some back-and-forth discussions, each events agreed to work collectively to implement the STARK verifier in open supply utilizing the OP_CAT primitive. “I do know it may be executed. We simply need to put all of the items collectively,” Chen advised. The “Bitcoin Wildlife Sanctuary” was born.
Two months later, the mission seems to have achieved its targets, due to the collaboration of different builders equivalent to Pingzhou Yuan, one other early BitVM contributor. Late final Friday morning, Chen jumped into the mission’s Telegram group to interrupt the information to different individuals: “I feel I am executed!”
After a profitable native check, the builders broadcast a sequence of transactions to Bitcoin’s Signet testnet community, which executes all the script. To optimize on-chain utilization, STARK proofs based mostly on Starkware’s open supply Stwo implementation are cut up into concurrent transactions linked collectively utilizing OP_CAT-based contracts.
At 6:29 a.m. on July 12, 2024, the ultimate transaction was confirmed on the Signet community, marking the start of what supporters consider could also be a brand new period in Bitcoin’s growth.
“It was an enormous effort and took lots of time,” Chen mentioned. “We began with nothing. There was no details about the Bitcoin ZK proof. There was no details about the mathematics to observe. We needed to construct the total stack, which in the end led to the implementation of the STARK validator.
Inspiring new growth paths
Whereas the outcomes are trigger for celebration, Chen insists the work isn’t but executed. When requested if he was optimistic about his work laying the inspiration for brand spanking new scaling protocols equivalent to Bitcoin Rollup, the developer rapidly modified his expectations.
“The thought is broadly possible, however the proof-of-concept isn’t but prepared for manufacturing. Proof of validity additionally requires a considerable amount of block house, which can grow to be costly sooner or later.
Starkware’s contributors acknowledge the challenges, however consider the mission’s success represents a “large leap” towards Bitcoin scaling options that may leverage its ZK rollup know-how.
One factor is for positive, this collaboration might additional strengthen the argument in favor of a possible OP_CAT delicate fork. Chen mentioned that with a view to combine the implementation of the validator, he needed to develop a dependable contract framework utilizing CAT, which may spotlight the flexibility of the script enchancment proposal. He believes that different builders within the ecosystem can use his code and are available to the identical conclusions as he does about its advantages.
“I feel as soon as now we have greatest practices in place, there will not be a lot danger. There will not be a lot that may go mistaken. We’ve got now clearly demonstrated that OP_CAT may be tailored to varied covenant initiatives in a protected approach.
When requested if he deliberate to contribute to the launch course of sooner or later, the developer readily admitted that he was not acquainted sufficient with all of the dynamics of Bitcoin open supply growth. Subsequent, he plans to share his progress with members of the event mailing listing and hopes others will touch upon his work and supply suggestions.
Reflecting on his expertise thus far, Chen instantly famous the significance of making a fertile atmosphere for brand spanking new builders to enter the ecosystem. He believes that many gifted builders are passing up the chance to develop on Bitcoin as a result of lack of a cohesive imaginative and prescient.
“There may be presently no clear sense of path, leaving contributors confused about their potential to affect the longer term. Hopefully, the emergence of recent instruments and primitives will enhance the scenario and make Bitcoin fanatics’ goals come true once more.