File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -324,9 +324,9 @@ static std::string generatePrimeNetJson(
324324 }
325325 oss << " ,\" curve-type\" :" << jsonEscape (isEdw ? " Edwards" : " Montgomery" );
326326 oss << " ,\" torsion-subgroup\" :" << torsion;
327- oss << " ,\" sigma_hex \" :" << jsonEscape (opts.sigma_hex );
328- oss << " ,\" curve_seed \" :" << opts.curve_seed ;
329- oss << " ,\" base_seed \" :" << opts.curve_seed ;
327+ oss << " ,\" sigma-hex \" :" << jsonEscape (opts.sigma_hex );
328+ oss << " ,\" curve-seed \" :" << opts.curve_seed ;
329+ oss << " ,\" base-seed \" :" << opts.curve_seed ;
330330 }
331331 else if (worktype == " pm1" ) {
332332 oss << " ,\" errors\" :{\" gerbicz\" :" << gerbiczError << " }" ;
@@ -394,6 +394,8 @@ static std::string generatePrimeNetJson(
394394 if (isEdw) canon << " E" ; // sigma
395395 if (opts.sigma192 ) {
396396 canon << opts.sigma192 ; // *** TODO: not sure where this value comes from ***
397+ } else if (opts.sigma_hex ) {
398+ canon << " 0x" << toLower (opts.sigma_hex );
397399 } else if (opts.sigma ) {
398400 canon << opts.sigma ;
399401 }
You can’t perform that action at this time.
0 commit comments