@@ -8,7 +8,7 @@ extern "C" {
88#endif
99
1010/* Helper function to generate the key registration (and closure) for `nparties` number of parties. */
11- static int multiple_key_reg (const unsigned long nparties , PartyId * party_ids , Stake * party_stake , StmVerificationKeyPtr * keys , ClosedKeyRegPtr * closed_reg ) {
11+ static int multiple_key_reg (const unsigned long nparties , PartyId * party_ids , Stake * party_stake , StmVerificationKeyPoPPtr * keys , ClosedKeyRegPtr * closed_reg ) {
1212 int err ;
1313 KeyRegPtr key_regs [nparties ];
1414 for (int i = 0 ; i < nparties ; i ++ ) {
@@ -33,7 +33,7 @@ static int multiple_key_reg(const unsigned long nparties, PartyId *party_ids, St
3333}
3434
3535/* Helper function for the initialisation of the different parties. */
36- static int multiple_initializers (const unsigned long nparties , PartyId * party_ids , Stake * party_stake , StmParameters params , StmInitializerPtr * initializer , StmVerificationKeyPtr * keys ) {
36+ static int multiple_initializers (const unsigned long nparties , PartyId * party_ids , Stake * party_stake , StmParameters params , StmInitializerPtr * initializer , StmVerificationKeyPoPPtr * keys ) {
3737 for (int i = 0 ; i < nparties ; i ++ ) {
3838 int err ;
3939 err = stm_intializer_setup (params , party_ids [i ], party_stake [i ], & initializer [i ]);
@@ -60,8 +60,8 @@ TEST(stm, invalidRegistration) {
6060 PartyId party_id_fake = 3 ;
6161 Stake party_stake [3 ] = {1 , 0 , 0 };
6262 Stake party_stake_fake = 4 ;
63- StmVerificationKeyPtr keys [3 ];
64- StmVerificationKeyPtr keys_fake ;
63+ StmVerificationKeyPoPPtr keys [3 ];
64+ StmVerificationKeyPoPPtr keys_fake ;
6565
6666 int err ;
6767
@@ -96,7 +96,7 @@ TEST(stm, invalidRegistration) {
9696// err = msp_serialize_verification_key(keys[1], &size, &fake_key);
9797// ASSERT_EQ(err, 0);
9898// fake_key[0] &= 0x00;
99- // StmVerificationKeyPtr f_key;
99+ // StmVerificationKeyPoPPtr f_key;
100100// err = msp_deserialize_verification_key(size, fake_key, &f_key);
101101// ASSERT_EQ(err, 0);
102102//
@@ -123,7 +123,7 @@ TEST(stm, clerkFromPublicData) {
123123 // Test with 2 parties, one with all the stake, one with none.
124124 PartyId party_ids [2 ] = {0 , 1 };
125125 Stake party_stake [2 ] = {1 , 0 };
126- StmVerificationKeyPtr keys [2 ];
126+ StmVerificationKeyPoPPtr keys [2 ];
127127 StmSignerPtr signer ;
128128
129129 // Scope of the signers, which is not required knowledge for the clerk. Signers initialise. There is no central
@@ -225,7 +225,7 @@ TEST(stm, produceAndVerifyAggregateSignature) {
225225 // Test with 2 parties, one with all the stake, one with none.
226226 PartyId party_ids [2 ] = {5 , 134 };
227227 Stake party_stake [2 ] = {1 , 0 };
228- StmVerificationKeyPtr keys [2 ];
228+ StmVerificationKeyPoPPtr keys [2 ];
229229 StmInitializerPtr initializer [2 ];
230230 ClosedKeyRegPtr closed_reg [2 ];
231231
@@ -316,7 +316,7 @@ TEST(stm, failSigningIfIneligible) {
316316 // Test with 2 parties, one with all the stake, one with none.
317317 PartyId party_ids [2 ] = {0 , 1 };
318318 Stake party_stake [2 ] = {1 , 0 };
319- StmVerificationKeyPtr keys [2 ];
319+ StmVerificationKeyPoPPtr keys [2 ];
320320 StmInitializerPtr initializer [2 ];
321321 ClosedKeyRegPtr closed_reg [2 ];
322322
@@ -351,7 +351,7 @@ TEST(stm, dynamicStake) {
351351 // initialise the key array with a size of 3.
352352 PartyId party_ids [2 ] = {5 , 13 };
353353 Stake party_stake [2 ] = {1 , 0 };
354- StmVerificationKeyPtr keys [3 ];
354+ StmVerificationKeyPoPPtr keys [3 ];
355355 StmInitializerPtr initializer [2 ];
356356 ClosedKeyRegPtr closed_reg [2 ];
357357
0 commit comments