Skip to content

v0.1.0

Choose a tag to compare

@tee8z tee8z released this 19 Sep 19:44
· 15 commits to main since this release
v0.1.0
8a6f1c0

Breaking changes

  • ContractParameters::validate now 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.
  • validate also 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 above MAX_RELATIVE_LOCKTIME_BLOCK_DELTA (which previously made the reclaim paths permanently unspendable).

Features

  • External signing API: TicketedDLC::signing_data returns a SigningData struct 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 with TicketedDLC::verify_signatures / into_signed_contract before funding. See the dlctix::signing module docs and tests/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 warnings gate (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.