🔏Peg-in & Out Bitcoin
Last updated
Last updated
To eliminate the trust assumption while sustaining decentralization, BitRexe adopted the space chain method. In short, the initial idea of the spacechain is to make its connection to Bitcoin a one-way peg. You are allowed to burn bitcoin and receive the same amount of xBTC on the layer 2 network, but you cannot peg out.
If there's no peg-out wallet on the Bitcoin Layer 1 to manage, no need to assumption-ally trust parties who own your custodian Bitcoin like Liquid, or re-build a POS network like Stacks did that increases consensus abundance.
However, the impossibility of Spacechain redeeming your Bitcoin is intimidating to the average user.
BitRexe takes one step forward while allowing two-pegged without changing the security and sustaining the zero-trust assumption of the spacechain solution.
There's no such function as burning your xBTC and receiving BTC on Layer 1.
Instead,
when you peg-in Bitcoin successfully, it means another party(parties) pegged-out the same amount of rxBTC. Vice versa. We call it SWAPCHAIN.
If you are familiar with buying crypto via Fiat with C2C trading on central exchanges like Binance and Coinbase, the method should instantly make sense to you. Your peg-in & peg-out requests are essentially orders, they can be fulfilled by any party with the opposite demands.
Moving funds from Bitcoin to BitRexe is called a peg-in;
A BitRexe user sends Bitcoin to the address belonging to the parties pegging out. Once the orders are matched for both sides, an address will be generated to receive one's peg-in Bitcoin. Once the transaction is finalized, a 1:1 equivalent rxBTC will be minted and transferred to the user's DIO wallet address.
A peg-in transaction requires 6 confirmations on the Bitcoin network before the funds can be claimed on the BitRexe Network. This high level of security is required to protect all participants’ funds in the event of a large block reorganization of the Bitcoin blockchain.
Reclaim your Bitcoin from BitRexe to Bitcoin is called a peg-out;
Once a peg-out request is submitted
rxBTC will be burnt
Once the watcher address has witnessed the burning on-chain activity through RPC
Such request will then be transferred to the datasync
service.
Datasync
will then send a withdraw info to the App backend