Skip to content

Commit

Permalink
Add shares from the oldest QOS commit that seemed reasonable. Better …
Browse files Browse the repository at this point in the history
…safe than sorry.
  • Loading branch information
r-n-o committed Nov 13, 2024
1 parent a1c9305 commit 8098a48
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/qos_crypto/src/shamir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,27 @@ mod test {
// reconstruct. If this test starts failing please do _not_ ignore it,
// it's telling you the current quorum key shares will become invalid
// when combined!
// --------
// These shares were generated with the following QOS commit:
// `31ad6ac8458781f592a442b7dc0e0e019e03f2f4` (2022-05-12)
// with the following test code:
// #[test]
// fn make_shares() {
// let secret = b"my cute little secret";
// let n = 3;
// let k = 2;
//
// let all_shares = shares_generate(secret, n, k);
// for share in all_shares {
// println!("share: {}", hex::encode(share));
// }
// }
let shares = [
qos_hex::decode("0116b5873b04714bd159f8ff59613f9e79cbb2e7a526")
qos_hex::decode("01661fc0cc265daa4e7bde354c281dcc23a80c590249")
.unwrap(),
qos_hex::decode("029bfa75d3977e39d90650792e76d1476722da43fed0")
qos_hex::decode("027bb5fb26d326e0fc421cf604e495e3d3e4bd24ab0e")
.unwrap(),
qos_hex::decode("03e036d28be67b172833c1f2037b8bf96d8c0bd63e82")
qos_hex::decode("0370d31b89800f2f9255abb73ca0ed0f8329d20fcc33")
.unwrap(),
];

Expand Down

0 comments on commit 8098a48

Please sign in to comment.