Skip to content

Commit ffca321

Browse files
Merge pull request #29 from JamesHeinrich/main
Update JsonBuilder.cpp
2 parents efd9d19 + 2b05170 commit ffca321

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/io/JsonBuilder.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)