|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cryptocurrency News Articles
sCrypt Wins 2024 Bitcoin Olympics Hackathon (Litecoin Track) by Enabling Cross-Chain Payments
Sep 11, 2024 at 03:00 pm
Blockchain scripting and contract firm sCrypt has won the 2024 Bitcoin Olympics Hackathon (Litecoin Track) by showing how it's possible to make a payment on one blockchain and receive an asset on another.
Blockchain scripting and contract firm sCrypt has shown how it’s possible to make a payment on one blockchain and receive an asset on another, in a project that won the 2024 Bitcoin Olympics Hackathon (Litecoin Track).
The two-man team of software engineers Mihael Šinkec and Yusuf Idi Maina used SPV and the opcode OP_CAT on the BTC Signet to demonstrate a transaction where a buyer used Litecoin to purchase BTC Ordinal tokens.
The demonstration expands the potential for DeFi applications, exchanging one type of digital asset for another directly between transacting parties, without needing coordination between the two parties and without needing to trust third-party intermediaries like exchanges.
Šinkec said constructing such a transaction using raw BTC ASM (assembly code used to create custom scripts) would be complicated, so the pair used sCrypt’s SDK, which lets developers work in more familiar TypeScript to focus instead on the contract logic.
They verified transaction preimages on the stack and verified them with “a straightforward function call” in a BTC covenant.
This process also uses Simplified Payment Verification (SPV) on Litecoin, reconstructing a transaction’s Merkle Root by using its data and Merkle Path and then comparing it to the transaction’s Block Header. Using SPV, the client checks the Block Header’s validity without requiring a full download of the blockchain.
Šinkec explained the process in more detail on Medium, writing that it was a challenge to verify a Litecoin transaction proof using BTC script since the two blockchains use different PoW algorithms.
The team used an oracle that could attest to the validity of Litecoin transactions and Lamport signatures that could be verified in BTC script.
The Litecoin SPV proof was then used to unlock a BTC Ordinal token placed in a BTC covenant and transfer the asset to the receiver’s BTC address. A “covenant” allows a programmer to impose constraints on how specific coins may be spent in future transactions.
Šinkec explained the covenant transaction in more detail:
“Enabling OP_CAT on BTC opens up many possibilities such as covenants and validation of Merkle Proofs. We leveraged both these mechanisms to implement an Ordinal sales listing as a covenant on BTC. It accepts Litecoin as a payment option without going through an intermediary, such as an exchange.”
OP_CAT is an opcode that existed in the original 2009 Bitcoin protocol, allowing programmers to concatenate two items on the stack. This enables the potential for more sophisticated transaction scripts and thus expands Bitcoin’s range of applications and potential use cases.
However, in a move similar to the one that imposed BTC’s ‘temporary’ 1MB block size limit, OP_CAT and other original opcodes were disabled very early in Bitcoin’s existence due to fears bad-faith actors could use them to “spam” or overwhelm the network before it had the resources to combat such actions.
The BSV blockchain re-enabled OP_CAT along with other original opcodes in 2019/2020, one of many moves that expanded BSV’s functionality and restored Satoshi Nakamoto’s original vision for Bitcoin.
There are also moves to re-enable OP_CAT on the BTC main network, but at the time of writing that hasn’t happened yet. For now, sCrypt’s cross-chain transaction works only on the BTC Signet, a more closed-off alternate testnet for blockchain apps, and experiments with new transaction types. OP_CAT has been re-enabled on the BTC Signet.
Since sCrypt’s prize-winning project connects the Litecoin and BTC Signet blockchains, it’s more theoretical than immediately usable as things currently exist. However, OP_CAT works on BSV and has done so for five years now, meaning developers could use the process to enable cross-chain payments. BSV has shown time and time again that more creative uses for blockchain technology are available for creative developers looking for new opportunities.
Disclaimer:info@kdj.com
The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!
If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.
-
- Aave (AAVE) Is Poised for a Huge Breakout, Analyst Claims: Here Are the Key Bullish Signals
- Nov 23, 2024 at 11:00 pm
- In his most recent analysis, Popular TradingView analyst Alan Santana underlined in great detail that the long period of consolidation and modest expansion for Aave (AAVE) is at last ending.
-
- Solana (SOL), Ripple (XRP), and Minotaurus (MTAUR) Are Getting Attention as Top Cryptocurrencies for the Current Market Cycle
- Nov 23, 2024 at 11:00 pm
- With strong price performance, promising technical patterns, and developments around regulation and utility, these assets are catching the eye of buyers.
-
- 5 New Crypto Coins to Buy: JetBolt (JBOLT), Kaspa (KAS), Peanut the Squirrel (PNUT), Toncoin (TON), and Celestia (TIA)
- Nov 23, 2024 at 10:50 pm
- New crypto coins JetBolt (JBOLT), Kaspa (KAS), Peanut the Squirrel (PNUT), Toncoin (TON), and Celestia (TIA) are making headlines. Each of these cryptocurrencies offers groundbreaking technologies and fresh opportunities for crypto buyers.