Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseposner committed Dec 6, 2023
1 parent 2466132 commit bd4e00a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/modules/frost/tests_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ void frost_api_tests(void) {
secp256k1_pubkey invalid_vss_pk;
secp256k1_frost_share invalid_share;
secp256k1_frost_share shares[5];
const secp256k1_frost_share *invalid_share_ptr[5];
secp256k1_pubkey pubshares[5];
int i;
size_t ids[5];
Expand Down Expand Up @@ -172,7 +171,6 @@ void frost_api_tests(void) {
secp256k1_testrand256(session_id[i]);
}
invalid_pubnonce_ptr[0] = &invalid_pubnonce;
invalid_share_ptr[0] = &invalid_share;
invalid_partial_sig_ptr[0] = &invalid_partial_sig;
invalid_ids[2] = 0;

Expand Down Expand Up @@ -589,15 +587,9 @@ void frost_tweak_test(void) {
void frost_dkg_test_helper(secp256k1_frost_share *shares, secp256k1_xonly_pubkey *pk) {
unsigned char seed[32];
secp256k1_pubkey pubshares[5];
size_t ids[5];
int i;

secp256k1_testrand256(seed);

for (i = 0; i < 5; i++) {
ids[i] = i + 1;
}

CHECK(secp256k1_frost_shares_trusted_gen(CTX, shares, pubshares, pk, seed, 3, 5) == 1);
}

Expand Down

0 comments on commit bd4e00a

Please sign in to comment.