dlc-trie — efficient CET tree for numerical outcomes.
High-level flow
use dlc_manager::Manager;
use dlc_manager::contract::offered_contract::OfferedContract;
let manager = Manager::new(blockchain, wallet, ...);
// Offer side
let offer = manager.send_offer(&counter_party_pubkey, &contract_input)?;
// Accept side (counterparty)
let accept = manager.accept_contract(offer)?;
// Sign side (offerer)
let sign = manager.process_accept(accept)?;
// Confirm
manager.process_sign(sign)?;
manager.broadcast_funding()?;
// At settlement, oracle publishes attestation, manager picks CET
manager.close_contract(...)?;
Oracle integration
Oracles publish nonces upfront, attestations at settlement. rust-dlc
handles:
Nonce verification.
Attestation-to-CET mapping.
Adapter signature application.
Use cases
Sports betting apps.
BTC/USD hedging derivatives.
Parametric insurance.
Lava, Atomic Finance, other DLC products use rust-dlc.
Common pitfalls
Oracle availability: contract is locked until oracle attests
(or refund timeout).
CET storage: numerical contracts can have thousands of pre-signed
CETs; persist properly.
Fee management: pre-signed CETs have fixed fees; mempool may
reject if fee rates spike.
Run npx skillmds@latest add tomevault-io/claude-dev-suite-claude-dev-suite-bitcoin-libraries-rust-dlc in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
rust-dlc It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.