bitcoin
bitcoin

$98727.79 USD 

0.43%

ethereum
ethereum

$3476.58 USD 

5.37%

tether
tether

$1.00 USD 

0.05%

solana
solana

$262.80 USD 

3.00%

bnb
bnb

$676.85 USD 

8.89%

xrp
xrp

$1.57 USD 

8.69%

dogecoin
dogecoin

$0.462449 USD 

15.24%

cardano
cardano

$1.12 USD 

23.28%

usd-coin
usd-coin

$0.999964 USD 

0.00%

tron
tron

$0.219523 USD 

10.15%

avalanche
avalanche

$43.21 USD 

11.65%

shiba-inu
shiba-inu

$0.000027 USD 

10.86%

toncoin
toncoin

$6.32 USD 

15.61%

stellar
stellar

$0.490526 USD 

66.58%

polkadot-new
polkadot-new

$8.79 USD 

41.17%

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.

sCrypt Wins 2024 Bitcoin Olympics Hackathon (Litecoin Track) by Enabling Cross-Chain Payments

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.

News source:coingeek.com

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.

Other articles published on Nov 23, 2024