Software Development Kits
To interact with Bitcoin data on Starknet, you'll need three components:
- An SDK to generate the necessary proofs from Bitcoin Core (opens in a new tab).
- A Cairo library to interpret the Bitcoin data in your smart contracts
- A relayer service to verify the integrity of the Bitcoin data
TypeScript/JavaScript SDK
You can install the TypeScript/JavaScript SDK from npm:
npm install bitcoin-on-starknet
Cairo Library
To work with Bitcoin data structures in your Starknet smart contracts, you can use Raito, a Bitcoin light client developed by the Starkware exploration team. Raito provides Bitcoin data structures in Cairo, allowing you to focus on using Bitcoin data in your smart contracts.
You can find the library on GitHub at Raito (opens in a new tab)
Relayer Service
The relayer service is responsible for verifying the integrity of Bitcoin data on Starknet. You can find the implementation at Utu Relay (opens in a new tab).
The relayer is deployed at the following addresses: