You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ink is well supported in substrate and offers a developer experience very close to core Rust as it wraps the smart contracts inside a macro to handle its integration into a runtime (https://use.ink/basics/contract-template). From there, contracts need to be provided access to the existing runtime functions like the bitcoin light client, AMM, lending, bridge, …. For a great dev experience, hackathon templates and a well-documented SDK needs to be created for devs to get started with a new contract as simply as possible (should take less than 20 minutes to get started).
Possible use cases that could be build with this:
Trustless P2P swaps between BTC, BRC20s, Ordinals and USDT, USDC using cross-chain proofs
Bitcoin derivatives with settlement in Bitcoin or stables.
Abstract
Add support for Rust smart contracts by adding the
contracts
pallet and allow access to the BTC-Relay for smart contracts to interact with Bitcoin.Motivation
Building an L2 for Bitcoin should use Rust as its core programming language: the new Bitcoin apps (e.g., https://github.com/ordinals/ord and https://github.com/rust-nostr/nostr), libraries (e.g., https://github.com/rust-bitcoin), and SDKs (e.g., https://github.com/lightningdevkit and https://bitcoindevkit.org/) are majorly based on Rust.
Ink is well supported in substrate and offers a developer experience very close to core Rust as it wraps the smart contracts inside a macro to handle its integration into a runtime (https://use.ink/basics/contract-template). From there, contracts need to be provided access to the existing runtime functions like the bitcoin light client, AMM, lending, bridge, …. For a great dev experience, hackathon templates and a well-documented SDK needs to be created for devs to get started with a new contract as simply as possible (should take less than 20 minutes to get started).
Possible use cases that could be build with this:
Specification
contracts
pallet to the runtime: https://github.com/paritytech/substrate/tree/master/frame/contractsReference Implementation
Proof of concept: #1114
Security Considerations
TBD
The text was updated successfully, but these errors were encountered: