0

What are the options for Bitcoin integration on Cardano?

Is there a way to allow users to deposit BTC, have smart contract rules that adjust balances (based on signed app specific transactions), whilst also allowing users to withdraw their balance? Does a simple example exist anywhere?

2 Answers 2

1

There's a great read here on one possible approach to such an integration: https://medium.com/@anetaBTC/anetabtc-litepaper-v1-0-171f29b3276a

Basically there is a piece of software - the bridge - that acts as an intermediary between both chains, ie locking and releasing btc to / from a bitcoin vault and minting / burning native assets on Cardano (or Ergo).

This way you can freely use your native assets on Cardano and then trade them back in to redeem your BTC later.

1

If I am understanding this correctly you wish for:

  1. users to be able to move assets (Having BTC deposited on Cardano Smart Contracts Would mean doing this)

  2. Have a smart contract that enables arbitrary deposits and withdrawals by an authorised party.

  3. Have balances of a party automatically updated in the smart contract.

I will now attempt to help with each in turn:

  1. Assets on the bitcoin blockchain are completely different from assets on the Cardano blockchain and currently, smart contracts can only interact with their own blockchain and assets on it (this may change in the future but I doubt it).

The way projects get around this currently is to first wrap assets into a representation of that assets on a different blockchain through a bridge. You can wrap BTC and to Cardano and have that work with Cardano smart contracts. For more details, I would suggest reading up on Nomad and Milkomeda and AnnetaBTC.

  1. I have not heard of anything like this but it is conceivably possible, also this is a bad project design. After the Vasil hardfork reference scripts will enable you to have two lightweight contracts to implement and decrement the balances. Currently, you will have to resubmit the contracts to the chain every transaction.

  2. I don't think you should attempt to use smart contracts to store states that is the job of the ledger. I am not sure if this is even possible at the moment.

2
  • Thankyou, btw is there a type on your new suggested tag - should be "wrapped"?
    – Lee
    Commented Jun 10, 2022 at 13:01
  • Yes sorry about that the UI for editing does not let me select tags in the same way that you can do for submitting questions and I knew the tag would be called warp or wrapped and just guest at that point.
    – KryptoKing
    Commented Jun 10, 2022 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.