BIP Draft: ChillDKG: Distributed Key Generation for FROST #2227

pull mllwchrry wants to merge 1 commits into bitcoin:master from mllwchrry:chilldkg changing 55 files +12544 −0
  1. mllwchrry commented at 7:35 PM on July 30, 2026: none

    This PR adds a BIP for the ChillDKG distributed key generation protocol intended to be used with BIP 445 (FROST Signing). The development repository is at https://github.com/BlockstreamResearch/bip-frost-dkg.

    Remaining items to do:

    Feedback is very much appreciated! Please comment on this pull request or open an issue at https://github.com/BlockstreamResearch/bip-frost-dkg for any feedback. Thank you!

    Disclosure: AI has been used in the later stages of drafting for proof reading as well as refactoring and reviewing certain sections of the reference code.

    Note to editors: Despite there being a handful of things we still plan to improve, we're opening this PR intentionally not as a draft PR to indicate that the BIP draft is in a shape ready for review by the community. Should you disagree with this decision, simply convert the PR to draft.

  2. Add a BIP for ChillDKG: Distributed Key Generation for FROST 2b9b0b1875
  3. leviwinks commented at 7:40 PM on July 30, 2026: none

    How did you solve the ice problem...?

  4. jonatack added the label New BIP on Jul 30, 2026
  5. DarkWindman commented at 9:22 AM on July 31, 2026: none

    How did you solve the ice problem...?

    Thanks for the question — I assume you mean identifiable cheating entities, as in ICE-FROST?

    ChillDKG does identify faulty parties. Whenever a session aborts, an honest party will blame at least one participant or the coordinator. If a participant receives incorrect secret shares and cannot immediately tell who is responsible, it can request an auxiliary investigation message from the coordinator, which lets it single out the faulty participant.

    The guarantees are deliberately limited. Blame is conditional on reliable communication links, and a participant blaming another participant additionally relies on an honest coordinator.

    Most importantly, ChillDKG is not robust by design: the session aborts instead of continuing without the faulty party (see the "Robustness is Not a Goal" section). Excluding a participant would degrade the setup from t-of-n to (t-1)-of-(n-1) from the outset, and would hand a faulty coordinator the power to exclude participants at will.

  6. bitcoin deleted a comment on Aug 1, 2026
  7. jonatack commented at 1:23 AM on August 1, 2026: member

    @leviwinks please stop spamming here with long, unrelated comments. Thank you.

  8. bitcoin deleted a comment on Aug 1, 2026
  9. bitcoin deleted a comment on Aug 1, 2026
  10. bitcoin deleted a comment on Aug 1, 2026
  11. bitcoin deleted a comment on Aug 1, 2026
  12. leviwinks commented at 5:23 AM on August 1, 2026: none

    Repost #! 🤙🙂‍↔️🎯

    Sent from Outlook for iOShttps://aka.ms/o0ukef


    From: Mark Flatt @.> Sent: Saturday, August 1, 2026 09:53 To: bitcoin/bips @.>; bitcoin/bips @.> Cc: Mention @.> Subject: Re: [bitcoin/bips] BIP Draft: ChillDKG: Distributed Key Generation for FROST (PR #2227)

    The Gerbil King has returned

    Sent from Outlook for iOShttps://aka.ms/o0ukef


    From: Mark Flatt @.> Sent: Saturday, 01 August 2026 09:25:12 To: bitcoin/bips @.>; bitcoin/bips @.> Cc: Mention @.> Subject: Re: [bitcoin/bips] BIP Draft: ChillDKG: Distributed Key Generation for FROST (PR #2227)

    Sorry Mr Slave

    Sent from Outlook for iOShttps://aka.ms/o0ukef


    From: Jon Atack @.> Sent: Saturday, 01 August 2026 09:24:21 To: bitcoin/bips @.> Cc: MuSig2 @.>; Mention @.> Subject: Re: [bitcoin/bips] BIP Draft: ChillDKG: Distributed Key Generation for FROST (PR #2227)

    [https://avatars.githubusercontent.com/u/2415484?s=20&v=4]jonatack left a comment (bitcoin/bips#2227)https://github.com/bitcoin/bips/pull/2227#issuecomment-5148837699 @leviwinkshttps://github.com/leviwinks please stop spamming here with long, unrelated comments. I've removed two of them. Thank you.

    — Reply to this email directly, view it on GitHubhttps://github.com/bitcoin/bips/pull/2227?email_source=notifications&email_token=ALI6O4NN2MRPXZ4PKJRICJ35HVBELA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJUHA4DGNZWHE42M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5148837699, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALI6O4OYY25KWLP3GN5S4AL5HVBELAVCNFSNUABEKJSXA33TNF2G64TZHMYTINJTGE3TGNZ3JFZXG5LFHM2TAMRTGMZTSMJVG6QXMAQ. Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOShttps://github.com/notifications/mobile/ios/ALI6O4O5YKMCOJJ7XT3IOGL5HVBELA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJUHA4DGNZWHE42M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y and Androidhttps://github.com/notifications/mobile/android/ALI6O4OKQ64GTMXZKSW2GM35HVBELA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJUHA4DGNZWHE42M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI. Download it today! You are receiving this because you were mentioned.

  13. in bip-chilldkg.md:20 in 2b9b0b1875
      15 | +Discussion: 2024-07-08: https://groups.google.com/g/bitcoindev/c/HE3HSnGTpoQ/m/euZvPxKeAQAJ
      16 | +Version: 0.3.0
      17 | +Requires: 445
      18 | +```
      19 | +
      20 | +# ChillDKG: Distributed Key Generation for FROST
    


    murchandamus commented at 10:45 PM on August 31, 2026:

    Nit: Title is already mentioned in the preamble.

  14. in bip-chilldkg.md:128 in 2b9b0b1875
     123 | +As an additional feature of ChillDKG, the DKG outputs for any signing device can be fully recovered from
     124 | +a backup of a single *host secret key* specific to the device,
     125 | +(the essential parts of) the public transcripts of the DKG sessions,
     126 | +and the corresponding success certificates.
     127 | +To simplify the interface, we combine the transcript data and the session certificate into a single byte string called the *recovery data*,
     128 | +which is common to all participants and does not need to be kept confidential.
    


    murchandamus commented at 10:55 PM on August 31, 2026:

    Not kept confidential from other participants or not kept confidential from the public?


    DarkWindman commented at 4:54 PM on September 4, 2026:

    From the public. I think the wording “which is common to all participants and does not need to be kept confidential” is a bit confusing. Essentially, the point is that since the recovery data contains all the aggregated data, it is shared among all participants, so backups are not participant-specific, and a participant who loses their copy can re-obtain it from any other party. By “confidentiality” here, I think we actually mean that it cannot be used to recover any secret key material or otherwise compromise the protocol: all sensitive values are already encrypted. However, it is important to note, that the remaining fields do reveal session metadata, that is why in Backup and Recovery section note that the user can encrypt the recovery data before sending. It's also worth noting that to actually use this data (recover a secshare), a user must apply their hostsecretkey. If they’ve lost that key as well, recovery is impossible.


    jonatack commented at 9:42 PM on November 19, 2026:

    Maybe make recovery-data privacy explicit here with something like

    To simplify the interface, we combine the transcript data and the session certificate into a single byte string called the recovery data, which is common to all participants. The recovery data is not confidential among the participants and does not allow recovery of secret shares without the corresponding host secret key. It does, however, reveal session metadata (including the host public keys, threshold, threshold public key, and public shares). Applications that require privacy of this metadata should encrypt the recovery data before storing or transmitting it outside the set of participants and the coordinator. Recovering a device that has participated in a DKG session then requires just the device's host secret key and the (optionally encrypted) recovery data, the latter of which can be obtained from any cooperative participant (or the coordinator) or from an untrusted backup provider.

  15. in bip-chilldkg.md:139 in 2b9b0b1875
     134 | +If such a key was used directly in a Taproot output, the malicious participant could spend the output through their hidden script path, bypassing the requirement for `t - 1` additional signatures.
     135 | +While [BIP 341](bip-0341.mediawiki) outlines special precautions for using threshold public keys generated by standard PedPop, ChillDKG eliminates this vulnerability entirely, providing built-in protection against accidental misuse.
     136 | +
     137 | +If a ChillDKG session fails due to the participants or the coordinator deviating from the protocol,
     138 | +any aborting party will be able to identify and blame a single party responsible for the failure
     139 | +(assuming the network, and, depending on the circumstances, the coordinator, are reliable).
    


    murchandamus commented at 10:58 PM on August 31, 2026:

    The coordinator needing to be reliable in order to be able to blame a failure on the coordinator sounds contradictory.


    DarkWindman commented at 4:55 PM on September 4, 2026:

    An honest coordinator is required only when a participant blames another participant. Since the coordinator relays all messages, a malicious one can make an honest participant blame another honest participant. We strictly distinguish between these cases in the implementation: where the coordinator might have had an impact and a participant cannot be certain of the suspect's guilt, we raise a FaultyParticipantOrCoordinatorError.

    Blaming the coordinator itself never requires the coordinator to be honest. @real-or-random may want to weigh in here.


    real-or-random commented at 8:23 PM on September 4, 2026:

    This is indeed subtle.

    The only guarantee the protocol provides is this:

    If a ChillDKG session fails due to one or more participants deviating from the protocol,
    any aborting party will be able to identify and blame a single participant responsible for the failure
    (assuming the network and the coordinator are reliable).
    

    But just writing it like that will also be confusing to the reader because the code has also paths where a failing participant blames the coordinator. But the purpose of these code paths is just debugging broken coordinators, and there's no guarantee that an actively malicious coordinator can be caught (as it can always make an honest participant A blame another honest participant B by mis-relaying a message from B as @DarkWindman explains).

    We'll need to see how to phrase this clearly.


    jonatack commented at 9:32 PM on November 19, 2026:

    Maybe a sort-of combo of the original with @real-or-random's comment:

    If a ChillDKG session fails due to one or more participants deviating from the protocol, any aborting party will be able to identify and blame a single participant responsible for the failure (assuming the network and the coordinator are reliable). The reference implementation also contains code paths that blame the coordinator; these exist only to aid debugging of a broken or non-malicious coordinator and do not provide a guarantee against an actively malicious coordinator (who can always cause one honest participant to blame another honest participant by mis-relaying a message).

  16. in bip-chilldkg.md:149 in 2b9b0b1875
     144 | +
     145 | +In summary, we aim for the following design goals:
     146 | +
     147 | + - **Standalone**: ChillDKG is fully specified, requiring no external secure channels or consensus mechanism.
     148 | + - **Conditional agreement**: If a ChillDKG session succeeds for one honest participant, this participant will be able to convince every other honest participant that the session has succeeded.
     149 | + - **No restriction on threshold**: Like the FROST signing protocol, ChillDKG supports any threshold `t <= n`, including `t > n/2` (also called "dishonest majority").
    


    murchandamus commented at 11:01 PM on August 31, 2026:

    In line 40, t is restricted per 1 <= t <= n. Is the same threshold range applicable here? I suspect that t = 0 would not be acceptable?


    DarkWindman commented at 4:55 PM on September 4, 2026:

    Yes, we inherit the threshold constraint from line 40 (1 <= t <= n), and therefore t = 0 is excluded. I agree the bounds look incomplete here, but this bullet is really about the value of t specifically in relation to n, relying on the general bound from FROST mentioned above. We'll fix this to make it clearer.

  17. murchandamus commented at 11:13 PM on August 31, 2026: member

    I started reading this submission. I got up to Internals of ChillDKG. I left a few questions and comments inline.

    Beyond minor formatting issues, the submission appears high-quality and comprehensive. I noticed that the document is currently missing the required Backwards Compatibility section, and while there are sections that I identify as containing Specification and Rationale, they are currently titled differently.

  18. DarkWindman commented at 4:56 PM on September 4, 2026: none

    Thank you, @murchandamus, for the review! I've replied to the inline comments and we'll fold the changes into the next update. Looking forward to the rest of your pass.

  19. aakselrod commented at 4:43 PM on September 5, 2026: contributor

    This is looking amazing. I've ~started working on adding~ added the new recovery acknowledgments to my implementation and would really appreciate having test vectors for that as well.

    Also a small nit, and not necessary if you don't want to do it, but test group IDs might also be nice in the vectors where there are multiple test groups, similar to what BIP-0445 does.

  20. in bip-chilldkg.md:621 in 2b9b0b1875
     616 | + - If an honest participant aborts the session, then this participant will blame at least one participant or the coordinator.
     617 | + - If an honest coordinator aborts the session, then the coordinator will blame at least one participant.
     618 | +
     619 | +Moreover, a party which aborts due to a timeout while waiting for a protocol message
     620 | +(instead of aborting after having received an invalid protocol message)
     621 | +will trivially blame the party who is supposed to send the outstanding message.
    


    jonatack commented at 9:34 PM on November 19, 2026:

    Perhaps something like the following for the Blaming Faulty Parties section up to this point, if I'm understanding correctly:

    Blaming Faulty Parties

    Any faulty party can make a ChillDKG session abort by sending a message that deviates from the protocol specification. In order to resolve such situations, ChillDKG offers a blame functionality.

    The only guarantee the protocol provides is the following: If a ChillDKG session fails due to one or more participants deviating from the protocol, and the communication links are reliable and the coordinator is honest, then any aborting party will be able to identify and blame a single participant who is indeed faulty.

    The reference implementation also contains additional code paths in which an aborting participant blames the coordinator (or an aborting coordinator blames a participant). These paths exist solely to support manual investigation and debugging of a broken or non-malicious coordinator. They do not provide a security guarantee against an actively malicious coordinator: such a coordinator can always cause one honest participant to blame another honest participant by mis-relaying a message.

    Consequently:

    • Different parties (even if honest) are not guaranteed to blame the same party.
    • There is in general no way to verify an accusation made by one party about another.
    • The primary purpose of the blame functionality is to support debugging, not to serve as a robust accountability mechanism.

    Moreover, a party which aborts due to a timeout while waiting for a protocol message (instead of aborting after having received an invalid protocol message) will trivially blame the party who is supposed to send the outstanding message.

  21. in bip-chilldkg.md:553 in 2b9b0b1875
     548 | +so that it can, in principle, be stored with an untrusted third-party backup provider.
     549 | +
     550 | +Users **should** be aware that the session parameters (the threshold and the host public keys) and public parts of the DKG output (the threshold public key and the public shares) can be inferred from the recovery data, which may constitute a privacy issue.
     551 | +To eliminate this issue, a participant can encrypt the recovery data using an encryption key derived from their host secret key before giving it out to untrusted parties.
     552 | +Recovery from encrypted recovery data still requires only the participant's host secret key, with no additional secrets needed.
     553 | +This BIP does not specify the method of encryption.
    


    jonatack commented at 9:44 PM on November 19, 2026:

    Perhaps strengthen this section a little:

    Moreover, the recovery data contains secrets only in encrypted form and is self-authenticating so that it can, in principle, be stored with an untrusted third-party backup provider. The recovery data is not confidential among the participants and does not allow recovery of secret shares without the corresponding host secret key. It does reveal session metadata (the threshold, the host public keys, the threshold public key, and the public shares), which may constitute a privacy issue. Users who require privacy of this metadata should encrypt the recovery data using an encryption key derived from their host secret key before giving it out to untrusted parties. Recovery from encrypted recovery data still requires only the participant's host secret key, with no additional secrets needed. This BIP does not specify the method of encryption.

  22. jonatack commented at 9:52 PM on November 19, 2026: member

    Concept ACK

    Beyond minor formatting issues, the submission appears high-quality and comprehensive. I noticed that the document is currently missing the required Backwards Compatibility section, and while there are sections that I identify as containing Specification and Rationale, they are currently titled differently.

    Agree with @murchandamus' feedback. Update soon?

    <details><summary>Ran the python, bash, and example tests locally</summary><p>

    jon|(2b9b0b18...):~/bitcoin/bips/bip-chilldkg/python$ python3 tests.py
    jon|(2b9b0b18...):~/bitcoin/bips/bip-chilldkg/python$ ./tests.sh
    ruff is required but it's not installed. Aborting.
    jon|(2b9b0b18...):~/bitcoin/bips/bip-chilldkg/python$ brew install ruff
    ==> Auto-updating Homebrew...
    Adjust how often this is run with `$HOMEBREW_AUTO_UPDATE_SECS` or disable with
    `$HOMEBREW_NO_AUTO_UPDATE=1`. Hide these hints with `$HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
    ==> Auto-updated Homebrew!
    Updated 1 tap (homebrew/core).
    ==> New Formulae
    postgresql@19: Object-relational database system
    
    ==> Downloading bottle manifests
    ✔︎ Bottle Manifest ruff (0.17.6)                                                                                   Downloaded   12.7KB/ 12.7KB
    ==> Fetching downloads for: ruff
    ✔︎ Bottle ruff (0.17.6)                                                                                            Downloaded   10.5MB/ 10.5MB
    ==> Pouring ruff--0.17.6.arm64_tahoe.bottle.tar.gz
    🍺  /opt/homebrew/Cellar/ruff/0.17.6: 12 files, 27.7MB
    ==> Caveats
    zsh completions have been installed to:
      /opt/homebrew/share/zsh/site-functions
    jon|(2b9b0b18...):~/bitcoin/bips/bip-chilldkg/python$ ./tests.sh       
    Generated test vectors successfully
    jon|(2b9b0b18...):~/bitcoin/bips/bip-chilldkg/python$ python3 example.py
    ====== ChillDKG example session ======
    Using n = 3 participants and a threshold of t = 2.
    
    === Host secret keys ===
    ['8c7a76fec1df3c69dff8564d084438a8273ffd2ab76c0feb4285cb75c9c5897d',
     '569c7e3035cc4a25b4fca29083fb01370845e7861e9b6539d3427b99835ea5b6',
     '25af399fd20dc8b2efe425c2583deafc9850749ede0443e9bbfac59e0e18a7dd']
    
    === Session parameters ===
    {'hostpubkeys': ['0353bdbdb5cc9cfc11b0110e949516a8f21a182d99757a896aa218669625fe9660',
                     '037e52e3351dc1dd5ad955330c9a5e3bb47a3fb825aed46fa4c7dee2b5bce953de',
                     '0370f74f2539e547e3a087552dc362456f82ebb26b1cf9e4ccb3455b0908421871'],
     't': 2}
    
    Session parameters hash: 72257c3ffe76085da0befa2af5eae07130904fd2366f65482cb05b51a73a39e8
    
    === Coordinator's DKG output ===
    {'secshare': None,
     'thresh_pk': '0260e2bb38f8d0b00324eaa1486a69921e42c2a86025fc92f6d821b361a90e7ea9',
     'pubshares': ['03c46d3baef317f081307e11244d40a46ef9a178e09651a2ea4ef1aa84d37c0ade',
                   '03c150d3c7549202844e6dbc3962722875addb3b11ad9eb20e8efcb0be102bf455',
                   '02ded7bd5a249a23e0c74d4a7b718b1d4ee497382721babe797e9ad1e9bb61d9f4']}
    
    === Participant 0's DKG output ===
    {'secshare': 'ff74ea05f6c8dac7191b0fdd1614f152348b1d66dabd3682dbb45a5847796d9d',
     'thresh_pk': '0260e2bb38f8d0b00324eaa1486a69921e42c2a86025fc92f6d821b361a90e7ea9',
     'pubshares': ['03c46d3baef317f081307e11244d40a46ef9a178e09651a2ea4ef1aa84d37c0ade',
                   '03c150d3c7549202844e6dbc3962722875addb3b11ad9eb20e8efcb0be102bf455',
                   '02ded7bd5a249a23e0c74d4a7b718b1d4ee497382721babe797e9ad1e9bb61d9f4']}
    
    === Participant 1's DKG output ===
    {'secshare': '86aa37c36d8e08675ace131232ce4a2c419e1a1cf0e68736d97b532997eef5c9',
     'thresh_pk': '0260e2bb38f8d0b00324eaa1486a69921e42c2a86025fc92f6d821b361a90e7ea9',
     'pubshares': ['03c46d3baef317f081307e11244d40a46ef9a178e09651a2ea4ef1aa84d37c0ade',
                   '03c150d3c7549202844e6dbc3962722875addb3b11ad9eb20e8efcb0be102bf455',
                   '02ded7bd5a249a23e0c74d4a7b718b1d4ee497382721babe797e9ad1e9bb61d9f4']}
    
    === Participant 2's DKG output ===
    {'secshare': '0ddf8580e45336079c8116474f87a3064eb116d3070fd7ead7424bfae8647df5',
     'thresh_pk': '0260e2bb38f8d0b00324eaa1486a69921e42c2a86025fc92f6d821b361a90e7ea9',
     'pubshares': ['03c46d3baef317f081307e11244d40a46ef9a178e09651a2ea4ef1aa84d37c0ade',
                   '03c150d3c7549202844e6dbc3962722875addb3b11ad9eb20e8efcb0be102bf455',
                   '02ded7bd5a249a23e0c74d4a7b718b1d4ee497382721babe797e9ad1e9bb61d9f4']}
    
    === Common recovery data (556 bytes) ===
    0000000203d4a5c0ed08663657d5f4179a65cdb7ea39b5566f7c872204c59b5963e84d86ae02f39d2b549aa9079468a5b0de2e9cacae5485010e26fcac614832e72a6436cbb90353bdbdb5cc9cfc11b0110e949516a8f21a182d99757a896aa218669625fe9660037e52e3351dc1dd5ad955330c9a5e3bb47a3fb825aed46fa4c7dee2b5bce953de0370f74f2539e547e3a087552dc362456f82ebb26b1cf9e4ccb3455b0908421871029323b51deb38d1cedcc3d091c221fdfdad757a887fd620f2c9628b316b89d1b403dffd211429b120f23e72873519ba0d0b3ab66ccc376e508adaa84c239fb9ab4103b28b728aa95b80c487cf694521f281dd921adc020d853037674934e05c1436ae62c0ce1bc94180214211ceccd7baa7b8a7c4a2aba80edf5afb1002b58610a9999e972a7c069a7a2b750aa0024f6cbe8341954af7d0a6c3ca01c567ba6b4ab149e72e63645e0fb5fddbc62daf70cfaefdf21775bb490677f2fd7a54c5d08779f0fded9ed278ee65d0d0f76a2bcce7a69de82d201164fd56b5810fd4dfcf25422e01d3cddacdccb1c31e91aad3c2bf882bbd9338ee9bceaa3d19828c4b21cec6d2c0279971111334594ee2c87b0694b2b5a2ade2b8610f1a3cd80d0274995ae1452bfcebe24ca3b40ff8cb3510d057d4cc1703d57a819cc9d619eb571b7e5737e3d66836185032b5e5d7ee01c69982da5dba0be85c8fcc0197f62ea6dc4a0cd93264d242252878878f9af80c34c02900a151a2209f67a2f5769d6b3c0279ffe1bd
    jon|(2b9b0b18...):~/bitcoin/bips/bip-chilldkg/python$  
    

    </p></details>

    A few attempts at clarifying the security properties follow, feel free to ignore/use/adapt.

    IIUC this will need to match a few things in BIP445 once they are finalized there.


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-12-03 01:42 UTC