Skip to content

Commit 8098a48

Browse files
committed
Add shares from the oldest QOS commit that seemed reasonable. Better safe than sorry.
1 parent a1c9305 commit 8098a48

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

src/qos_crypto/src/shamir.rs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,27 @@ mod test {
7575
// reconstruct. If this test starts failing please do _not_ ignore it,
7676
// it's telling you the current quorum key shares will become invalid
7777
// when combined!
78+
// --------
79+
// These shares were generated with the following QOS commit:
80+
// `31ad6ac8458781f592a442b7dc0e0e019e03f2f4` (2022-05-12)
81+
// with the following test code:
82+
// #[test]
83+
// fn make_shares() {
84+
// let secret = b"my cute little secret";
85+
// let n = 3;
86+
// let k = 2;
87+
//
88+
// let all_shares = shares_generate(secret, n, k);
89+
// for share in all_shares {
90+
// println!("share: {}", hex::encode(share));
91+
// }
92+
// }
7893
let shares = [
79-
qos_hex::decode("0116b5873b04714bd159f8ff59613f9e79cbb2e7a526")
94+
qos_hex::decode("01661fc0cc265daa4e7bde354c281dcc23a80c590249")
8095
.unwrap(),
81-
qos_hex::decode("029bfa75d3977e39d90650792e76d1476722da43fed0")
96+
qos_hex::decode("027bb5fb26d326e0fc421cf604e495e3d3e4bd24ab0e")
8297
.unwrap(),
83-
qos_hex::decode("03e036d28be67b172833c1f2037b8bf96d8c0bd63e82")
98+
qos_hex::decode("0370d31b89800f2f9255abb73ca0ed0f8329d20fcc33")
8499
.unwrap(),
85100
];
86101

0 commit comments

Comments
 (0)