Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ extend-ignore-re = [
[default.extend-words]
# NOTE: use here for false-positives
anc = "anc"
ges = "ges"
PSBT = "PSBT"
ser = "ser"
# Names
Expand Down
1,510 changes: 1,510 additions & 0 deletions bip-chilldkg.md

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions bip-chilldkg/COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) The ChillDKG authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
9 changes: 9 additions & 0 deletions bip-chilldkg/all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

set -euo pipefail

./update-pydoc.sh

cd python || exit 1
./tests.sh
./example.py
4 changes: 4 additions & 0 deletions bip-chilldkg/images/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
all: chilldkg-sequence.png

chilldkg-sequence.png: chilldkg-sequence.txt
cat chilldkg-sequence.txt | plantuml -pipe > chilldkg-sequence.png
Binary file added bip-chilldkg/images/chilldkg-sequence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions bip-chilldkg/images/chilldkg-sequence.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@startuml
skinparam sequenceMessageAlign center
participant Participant
participant Coordinator

group Generation of host public keys
rnote over Participant: hostpubkey_gen(hostseckey)
Participant->Coordinator: hostpubkey (33 B)
end

group Session
Coordinator->Participant: hostpubkeys, t (33n+4 B)
rnote over Participant: participant_step1(...)
Participant->Coordinator: pmsg1 (33t+32n+97 B)
rnote over Coordinator: coordinator_step1(...)
Coordinator->Participant: cmsg1 (33(t-1)+162n B)
rnote over Participant: participant_step2(...)
Participant->Coordinator: pmsg2 (64 B)
rnote over Coordinator: coordinator_finalize(...)
Coordinator->Participant: cmsg2 (64n B)
rnote over Participant: participant_finalize(...)
end
12 changes: 12 additions & 0 deletions bip-chilldkg/python/.ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Exclude vendored package.
extend-exclude = ["secp256k1lab/**"]

[lint]
extend-ignore = [
# We catch "Exception" for good reasons.
"BLE001",
# Too many false positives (https://github.com/astral-sh/ruff/issues/7847).
"B023",
# We sort __all__ manually.
"RUF022",
]
7 changes: 7 additions & 0 deletions bip-chilldkg/python/chilldkg_ref/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import sys
from pathlib import Path

__all__ = ["chilldkg"]

# Prefer the vendored copy of secp256k1lab.
sys.path.insert(0, str(Path(__file__).parent / "../secp256k1lab/src"))
Loading