Repository navigation
v0.1.0
Breaking changes
ContractParameters::validatenow rejects duplicate signer public keys. Signing sessions identify signers by public key, so a shared key could never complete a session - and funding such a contract would lock the market maker's capital. Multiple entries per person are still supported: join once per entry with a fresh ephemeral key, ticket hash, and payout hash.validatealso now rejects: duplicate payout hashes, ticket/payout hash collisions, oracle locking points at infinity, payout-weight overflows, a zero funding value, a zero expiry, and locktime deltas aboveMAX_RELATIVE_LOCKTIME_BLOCK_DELTA(which previously made the reclaim paths permanently unspendable).
Features
- External signing API:
TicketedDLC::signing_datareturns aSigningDatastruct with every sighash, adaptor point, ordered signer set, and aggregate key needed to sign with an HSM, secure enclave, or non-Rust BIP-327 implementation. Verify results withTicketedDLC::verify_signatures/into_signed_contractbefore funding. See thedlctix::signingmodule docs andtests/external_signing.rs.
Security hardening
- Checked arithmetic for all payout and fee computations.
- Reclaim-path delays saturate instead of wrapping.
#![forbid(unsafe_code)].- CI workflow with a
cargo audit --deny warningsgate (weekly advisory sweep), hash-pinned GitHub Actions, hash-verified Bitcoin Core for regtest tests, and Dependabot config. - Expanded security-considerations documentation in the crate docs and README.
Dependencies
- Updated across the board (bitcoin 0.32.102, musig2 0.4.1, secp 0.7, serde 1.0.229, etc.); dev-dependencies modernized (
ciborium,dotenvy,tempfile).
All commits and this tag are GPG-signed by the maintainer.