Reserved IP Address°C
02-25-2025
BSV
$33.5
Vol 38.85m
-5.23%
BTC
$88234
Vol 60821.62m
-7.51%
BCH
$282.41
Vol 494.92m
-9.4%
LTC
$112.92
Vol 1285.03m
-7.68%
DOGE
$0.2
Vol 2755.77m
-10.74%
Getting your Trinity Audio player ready...

Next-Generation Atomic Swaps could “redefine NFT tokens on Bitcoin” and enable many DeFi-related use cases, says nChain Research Director Wei Zhang. In a blog post published this week, Zhang detailed a process that uses linked chains of transactions with Zero-Knowledge Proofs (ZKPs) to record an asset’s ownership history.

Zhang and his nChain colleague Federico Barbacovi have already demonstrated the technique on the BSV TestNet. They are inviting any potential collaborators or partners to examine its findings once they publish the code. Zhang sees non-fungible tokens (NFTs) and NFT trading as the primary use case, with atomic swaps that are “lightning fast and entirely trustless” thanks to the efficient use of Recursive Groth16 ZKPs.

DeFi for Bitcoin works best on BSV

DeFi, or “decentralized finance,” has become one of the most heavily used application cases for blockchain in recent years. This is due to the popularity of speculative trading—DeFi is a way to swap and trade digital assets from users’ own non-custodial wallets without a centralized exchange platform. To an extent, this protects users from the security shortcomings that have plagued online exchanges, as well as their stringent ID requirements. DeFi isn’t completely fail-safe, though, and users can still lose assets if there’s a problem with the swapping mechanism at some stage.

Zhang noted that nChain’s new technique will work on any UTXO-based blockchain, even BTC. However, he added that processing the verification transactions is only economically feasible on the BSV blockchain.

It’s based on an academic research paper titled “NFT Trades in Bitcoin with Off-chain Receipts” and authored by Mehmet Sabir Kiraz, Enrique Larraia, and Dr. Owen Vaughan.

The technique introduces the concept of transaction chains that start with an issuance (or “genesis”) transaction, i.e. the one where a token is created. Other transactions that follow are trade transactions, each being a final settlement but maintaining unique links to the ones preceding it.

The paper’s abstract says:

“Marketplaces typically require some degree of token ownership delegation, e.g., escrow accounts, to execute the trade between sellers and buyers that are not online concurrently, and to alleviate transaction fees they resort to off-chain trades. This raises concerns on the transparency and purportedly honest behaviour of marketplaces.”

Groth16 Recursive zkSNARKs are used to create a type of Proof-Carrying Data (PCD) that can prove a computation is correct across multiple transactions. The zero-knowledge proofs function as “off-chain receipts” of ownership and can be transferred even on an insecure channel. Importantly, these receipts are small in size and can be updated by anyone at any time without growing in (data) size as an asset is traded multiple times.

nChain makes ZKPs more efficient

Zero-knowledge proofs can play an important role in maintaining security and privacy on blockchain applications. Basically, ZKPs are a way to prove you possess certain information without revealing that information (a real-life example would be proving you’re a certain age without revealing your birthdate… or any other information on your identity document.)

The concept is simple, but making it work on a blockchain network is much harder. ZKPs usually require a lot of computational power. Groth16 ZKPs allow for compact proofs and efficient verification, but “making it recursive has historically been computationally demanding,” wrote Zhang.

“Despite recent industry voices such as Vitalik’s recent post urging a move away from Groth16, we believe its unparalleled proof compactness and efficiency in verification makes it indispensable for blockchain use cases,” Zhang wrote.

DeFi trading tends to happen mostly on blockchains built with smart contracts in mind, such as Ethereum. Ethereum works with an account-based model rather than a UTXO-based one like Bitcoin, so it’s often seen as more appropriate for the task—though, like every other application on Ethereum, it’s hampered by that network’s poor scalability and high fees.

Chaining/linking transactions on UTXO-based blockchains makes it possible to maintain a state as long as there’s a way to identify the previous transactions and prove the computation performed at each step was valid.

“Bitcoin, as originally designed, has all the capabilities to implement token logic and other smart contract capabilities that we thought were only possible on Ethereum. We just had to think a bit harder and implement recursive ZKP verification in Script.”

A sender transferring a token creates a ZKP, which can trace the asset back to the original issuing (Genesis) transaction. This proof can be embedded in an unlocking script based on the receiver’s output. The first transfer “spends” the output from the genesis transaction, and after that, it requires three Bitcoin transactions to transfer ownership (zk-verifier; proof; token-swap).

The token-swap transaction is under 330 bytes, while the zk-verifier is 414KB, and the proof is 291KB. Though relatively small, multiple-transaction transfers at those sizes would get expensive on a severely limited blockchain network like BTC. Therefore, only a cheap and scalable UTXO blockchain like BSV would be useful in the real world.

nChain is still testing the technique and invites developers to look at their work and work with them on possible improvements. NFTs and DeFi, in general, have been hot topics in the blockchain world for years now, but as with most other blockchain-based apps, everyone needs a solid, scalable, and affordable foundation to build on. BSV is that blockchain, and nChain is proving once again that it is possible to have speed and efficiency without sacrificing security.

Watch: AI boom is a boost for NFTs

Recommended for you

Nigeria slaps Binance with $81.5 billion lawsuit
Authorities have filed a lawsuit demanding $79.5 billion for the economic losses Binance caused in Nigeria and a further $2...
February 25, 2025
AI, pig butchering scams pushed to a record $12.4B in 2024
While the actual figure was $10B, Chainalysis expects to specify more criminal addresses in time, as it warned AI could...
February 25, 2025
Advertisement
Advertisement
Advertisement