4 ms·
Moving bitcoins to Stacks is easy, since Stacks reads the Bitcoin chain. But how do you move them from Stacks back to the Bitcoin main chain? Since Bitcoin clie
by DennisP 6y ago
Moving bitcoins to Stacks is easy, since Stacks reads the Bitcoin chain. But how do you move them from Stacks back to the Bitcoin main chain? Since Bitcoin clients aren't aware of Stacks, it's difficult to see how that would work without trusting someone to issue the correct transaction.
I looked over the Stacks site and didn't see a clear answer to this question.
- muneeb 6y agoMuneeb here, Stacks co-founder. Great question. You are right that Clarity smart contracts have direct visibility into Bitcoin, so you can write a contract that has logic triggered by pure Bitcoin transactions. Moving Bitcoin to Stacks is a bit more complicated and there are several ways: a) Wrapped assets. Tokensoft + Anchorage (custodian) have a solution that they're calling xBTC where a "wrapped Bitcoin" is issued on the Stacks chain. Such wrapped assets exist on other chains like Ethereum as well with one main difference that xBTC is secured by Bitcoin itself. b) There are more decentralized solutions similar to Keep network, where threshold signatures can be used to move the assets by a group of nodes. c) The most decentralized way of doing this is by locking your BTC directly on BTC chain, using Clarity to monitor funds, and then having Clarity trigger release of funds on Bitcoin chain. This requires Clarity logic to trigger Bitcoin state changes. This is theoretically possible but at R&D stage currently.
- lacker 6y agoThere sure is a lot of different stuff named "xBTC"....
- iso8859-1 6y agoBitcoin to Stacks is supposed to be the easy part... The question was about how you move Stacks to Bitcoin. I take from this handwaving answer that it isn't actually possible. Or let's rephrase the question in Bitcoin terms: While the BTC are locked up on the Bitcoin blockchain, which key is necessary to unlock them? Surely one controlled by Blockstack, no?
- jude- 6y agoYou'd need a STX-collateralized relay service that would trade your xBTC for real BTC. The collateral would be burnt over time if the service misbehaved, such as by not doing outstanding trades in a timely manner. The collateral itself would live in a Clarity contact so it could validate proofs that the service sent BTC to xBTC sellers.
- everfree 6y agoThanks for joining this thread. What exactly do you mean by "xBTC is secured by Bitcoin itself?" Do you mean that Stacks writes out its own block hashes to the Bitcoin blockchain, or something?
- jude- 6y ago> Do you mean that Stacks writes out its own block hashes to the Bitcoin blockchain, or something? Yes; the entire history of attempts of mining Stacks blocks, as well as the entire history cryptographic sortitions that select Stacks blocks (including forks), is written to the Bitcoin chain. See SIP-001 for details: https://github.com/stacksgov/sips/blob/main/sips/sip-001/sip-001-burn-election.md https://github.com/stacksgov/sips/blob/main/sips/sip-001/sip...
- hanniabu 6y ago> c) Is this fine with p2sh?
- lifty 6y agoYou have to trust the Stacks blockchain to be able to send the money back to Bitcoin.