@@ -123,12 +123,14 @@ fn test_spec_testvectors() {
123123 let iv = * b"yellow submarineyellow submarine" ;
124124 let vectors = extract_vectors_iv ( "src/tests/spec/vectors/allVectors.json" ) . unwrap ( ) ;
125125
126+ // Order functions to match JSON vector order:
127+ // allVectors.json order is: bbs, discrete_log, dleq, pedersen_commitment, pedersen_commitment_dleq
126128 let functions: [ fn ( & [ u8 ] , [ u8 ; 32 ] ) -> ( Vec < Scalar > , Vec < u8 > ) ; 5 ] = [
129+ NI_bbs_blind_commitment_computation_iv ,
127130 NI_discrete_logarithm_iv ,
128131 NI_dleq_iv ,
129132 NI_pedersen_commitment_iv ,
130133 NI_pedersen_commitment_dleq_iv ,
131- NI_bbs_blind_commitment_computation_iv ,
132134 ] ;
133135
134136 for ( i, f) in functions. iter ( ) . enumerate ( ) {
@@ -150,15 +152,21 @@ fn test_spec_testvectors() {
150152#[ test]
151153fn test_spec_testvectors_with_fixed_label ( ) {
152154 let seed = b"hello world" ;
153- let session_id = b"yellow submarineyellow submarine " ;
155+ let session_id = b"hello world " ;
154156 let vectors = extract_vectors_session ( "src/tests/spec/vectors/fixedLabelVectors.json" ) . unwrap ( ) ;
155157
158+ // Order functions to match JSON vector order:
159+ // 0: bbs_blind_commitment_computation_with_session_ID
160+ // 1: discrete_logarithm_with_session_ID
161+ // 2: dleq_with_session_ID
162+ // 3: pedersen_commitment_dleq_with_session_ID
163+ // 4: pedersen_commitment_with_session_ID
156164 let functions: [ fn ( & [ u8 ] , & [ u8 ] ) -> ( Vec < Scalar > , Vec < u8 > , Vec < u8 > ) ; 5 ] = [
165+ NI_bbs_blind_commitment_computation_session ,
157166 NI_discrete_logarithm_session ,
158167 NI_dleq_session ,
159- NI_pedersen_commitment_session ,
160168 NI_pedersen_commitment_dleq_session ,
161- NI_bbs_blind_commitment_computation_session ,
169+ NI_pedersen_commitment_session ,
162170 ] ;
163171
164172 for ( i, f) in functions. iter ( ) . enumerate ( ) {
0 commit comments