Skip to content

Commit 6ea53f2

Browse files
committed
python: add license file and re-write to error msg
1 parent a88f033 commit 6ea53f2

File tree

5 files changed

+28
-7
lines changed

5 files changed

+28
-7
lines changed

bip-frost-signing.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Comments-URI:
66
Status: Draft
77
Type: Standards Track
88
Assigned: ?
9-
License: CC0-1.0 or MIT
10-
Post-History: https://groups.google.com/g/bitcoindev/c/PeMp2HQl-H4/m/AcJtK0aKAwAJ
9+
License: CC0-1.0
10+
Discussion: 2024-07-31: https://groups.google.com/g/bitcoindev/c/PeMp2HQl-H4/m/AcJtK0aKAwAJ
1111
Requires: 32, 340, 341
1212
```
1313

@@ -783,6 +783,7 @@ This document proposes a standard for the FROST threshold signature scheme that
783783

784784
## Changelog
785785

786+
- *0.3.6* (2026-01-28): Add MIT license file for reference code and other auxiliary files.
786787
- *0.3.5* (2026-01-25): Update secp256k1lab to latest version, remove stub file, and fix formatting in the BIP text.
787788
- *0.3.4* (2026-01-01): Add an example file to the reference code.
788789
- *0.3.3* (2025-12-29): Replace the lengthy Introduction section with a concise Motivation section.

bip-frost-signing/COPYING

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2024-2026 Sivaram Dhakshinamoorthy
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

bip-frost-signing/python/frost_ref/signing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def __init__(self, signer_id: Optional[int], contrib: ContribKind) -> None:
4747
def derive_interpolating_value(ids: List[int], my_id: int) -> Scalar:
4848
assert my_id in ids
4949
assert 0 <= my_id < 2**32
50+
assert len(set(ids)) == len(ids)
5051
num = Scalar(1)
5152
deno = Scalar(1)
5253
for curr_id in ids:
@@ -95,9 +96,7 @@ def validate_signers_ctx(signers_ctx: SignersContext) -> None:
9596
except ValueError:
9697
raise InvalidContributionError(i, "pubshare")
9798
if len(set(ids)) != len(ids):
98-
raise ValueError(
99-
"The participant identifier list must contain unique elements."
100-
)
99+
raise ValueError("The participant identifier list contains duplicate elements.")
101100
if derive_thresh_pubkey(ids, pubshares) != thresh_pk:
102101
raise ValueError("The provided key material is incorrect.")
103102

bip-frost-signing/python/vectors/det_sign_vectors.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
"signer_index": 0,
259259
"error": {
260260
"type": "ValueError",
261-
"message": "The participant identifier list must contain unique elements."
261+
"message": "The participant identifier list contains duplicate elements."
262262
},
263263
"comment": "The participant identifier list contains duplicate elements"
264264
},

bip-frost-signing/python/vectors/sign_verify_vectors.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
"secnonce_index": 0,
219219
"error": {
220220
"type": "ValueError",
221-
"message": "The participant identifier list must contain unique elements."
221+
"message": "The participant identifier list contains duplicate elements."
222222
},
223223
"comment": "The participant identifier list contains duplicate elements"
224224
},

0 commit comments

Comments
 (0)