Coding Testnet Bitcoin
ICP offers protocol-level integration with the Bitcoin testnet. A canister smart contract, the Bitcoin Testnet canister, operates effectively as an on-chain “Bitcoin testnet light node”, receiving, holding, and indexing the complete set of unspent transaction outputs (UTXOs) in an efficiently queryable form. This Bitcoin Testnet canister offers other smart contracts on ICP the ability to submit signed transactions to the Bitcoin testnet. Submitted testnet-Bitcoin transactions are signed using chain-key ECDSA (ckECDSA) signatures, an enhanced version of threshold ECDSA available only on the Internet Computer (the only version that is secure in an asynchronous environment such as the Internet).
ckECDSA combined with the Bitcoin Testnet canister offers canister smart contracts running on ICP the ability to custody and transact native testnet Bitcoin without the need for any additional third-party off-chain custodial or bridging solutions.
ckTESTBTC is a pair of ICP smart contracts building on the Bitcoin Testnet canister and ckECDSA services. The contracts work together to enable users and canister smart contracts on ICP to send and receive testnet-BTC value within seconds — far faster than is possible with native testnet-BTC chain transactions, while also always allowing users and smart contracts to send and receive value to and from native testnet-BTC network addresses.
ckTESTBTC exposes ICRC-1 and ICRC-2 ledger interfaces (the fungible token standards of ICP), making it simple for all wallets on the Internet Computer to offer ckTESTBTC support. Many wallets also support the additional inter-network transfers to and from testnet-BTC addresses.
The two contracts work in concert to ensure that the total value of ckTESTBTC cannot exceed the testnet BTC held by the two contracts. This can always be verified by viewing the on-chain dashboards and metrics of the two contracts: ckTESTBTC Minter dashboard, ckTESTBTC Minter metrics, ckTESTBTC Ledger metrics.
ckECDSA combined with the Bitcoin Testnet canister offers canister smart contracts running on ICP the ability to custody and transact native testnet Bitcoin without the need for any additional third-party off-chain custodial or bridging solutions.
ckTESTBTC is a pair of ICP smart contracts building on the Bitcoin Testnet canister and ckECDSA services. The contracts work together to enable users and canister smart contracts on ICP to send and receive testnet-BTC value within seconds — far faster than is possible with native testnet-BTC chain transactions, while also always allowing users and smart contracts to send and receive value to and from native testnet-BTC network addresses.
ckTESTBTC exposes ICRC-1 and ICRC-2 ledger interfaces (the fungible token standards of ICP), making it simple for all wallets on the Internet Computer to offer ckTESTBTC support. Many wallets also support the additional inter-network transfers to and from testnet-BTC addresses.
The two contracts work in concert to ensure that the total value of ckTESTBTC cannot exceed the testnet BTC held by the two contracts. This can always be verified by viewing the on-chain dashboards and metrics of the two contracts: ckTESTBTC Minter dashboard, ckTESTBTC Minter metrics, ckTESTBTC Ledger metrics.