XBTC is a BTC Layer 2 scheme supported from ChainX v1.0.0, stored in the xpallet-assets module.
XBTC conducts asset mining through xpallet-mining-asset and obtains PCX rewards.
For users, use ChainX wallet to manage XBTC.
(2) BTC
BTC is a BTC layer2 scheme supported from ChainX v5.0.0, stored in the xpallet-btc-ledger module.
As the gas settlement layer of chainx-evm.
For users, only need to use metamask wallet to manage BTC.
For the greatest possible compatibility, ChainX v5.0.0 will support both XBTC and BTC,
The xpallet-assets-bridge::swap_xbtc_to_btc interface is provided to realize the one-way 1:1 migration of XBTC -> BTC.
2. ETH compatibility layer
chainx-evm is an Ethereum compatibility layer solution supported by ChainX v4.3.0, based on moonbeam-frontier, using PCX as chainx-evm gas.
The goal is to expand the application scenarios of BTC layer2 by transplanting mainstream Ethereum ecological applications.
In order for the majority of Bitcoin and Ethereum users to experience BTC layer2 more conveniently,
starting from ChainX v5.0.0, BTC is used as chainx-evm gas.
It's a breaking upgrade, but worth it nonetheless.
All BTC gas fees will be 100% transferred to ChainX Validators.
3. Bitcoin <-> ChainX
(1) Bitcoin -> ChainX:
the user send a bitcoin transaction with OP_RETURN output(attach evm address or chainx address).
if it is an evm address, the user can query the received BTC balance through metamask;
if it is a chainx address, the user can query the received XBTC balance through the ChainX wallet.
(2) ChainX -> Bitcoin(BTC):
the user calls the ChainXBridge smart contract in chainx-evm through the metamask wallet and attaches the bitcoin receiving address.
(3) ChainX -> Bitcoin(XBTC):
the user calls xGatewayCommon::withdraw through the ChainX wallet and attaches the bitcoin receiving address.
4. Bitcoin Assets
Support BRC-20, ORC-20, Taproot assets cross-chain.
ChainX = BTC layer2 + ETH compatibility layer + Substrate framework
1. The manifestation of BTC on ChainX
(1) XBTC
XBTC is a BTC Layer 2 scheme supported from ChainX v1.0.0, stored in the
xpallet-assets
module.XBTC conducts asset mining through
xpallet-mining-asset
and obtains PCX rewards.For users, use ChainX wallet to manage XBTC.
(2) BTC BTC is a BTC layer2 scheme supported from ChainX v5.0.0, stored in the
xpallet-btc-ledger
module.As the gas settlement layer of chainx-evm.
For users, only need to use metamask wallet to manage BTC.
For the greatest possible compatibility, ChainX v5.0.0 will support both XBTC and BTC,
The
xpallet-assets-bridge::swap_xbtc_to_btc
interface is provided to realize the one-way 1:1 migration of XBTC -> BTC.2. ETH compatibility layer
chainx-evm is an Ethereum compatibility layer solution supported by ChainX v4.3.0, based on moonbeam-frontier, using PCX as chainx-evm gas.
The goal is to expand the application scenarios of BTC layer2 by transplanting mainstream Ethereum ecological applications.
In order for the majority of Bitcoin and Ethereum users to experience BTC layer2 more conveniently, starting from ChainX v5.0.0, BTC is used as chainx-evm gas.
It's a breaking upgrade, but worth it nonetheless.
All BTC gas fees will be 100% transferred to ChainX Validators.
3. Bitcoin <-> ChainX
(1) Bitcoin -> ChainX: the user send a bitcoin transaction with OP_RETURN output(attach evm address or chainx address).
if it is an evm address, the user can query the received BTC balance through metamask;
if it is a chainx address, the user can query the received XBTC balance through the ChainX wallet.
(2) ChainX -> Bitcoin(BTC):
the user calls the ChainXBridge smart contract in chainx-evm through the metamask wallet and attaches the bitcoin receiving address.
(3) ChainX -> Bitcoin(XBTC):
the user calls
xGatewayCommon::withdraw
through the ChainX wallet and attaches the bitcoin receiving address.4. Bitcoin Assets
Support BRC-20, ORC-20, Taproot assets cross-chain.