Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for secp256r1 as service and node identities curve #2516

Merged
merged 7 commits into from
Apr 27, 2021

Conversation

eddyashton
Copy link
Member

@eddyashton eddyashton commented Apr 27, 2021

NB: This still doesn't support mixed curves within a service. If a node tries to join with an identity generated on a different curve, it will currently be unable to form channels with other nodes.

@eddyashton eddyashton requested a review from a team as a code owner April 27, 2021 14:51
Comment on lines +350 to +362
crypto::CurveID curve_id = crypto::CurveID::SECP384R1;
std::vector<std::pair<std::string, crypto::CurveID>> curve_id_map = {
{"secp384r1", crypto::CurveID::SECP384R1},
{"secp256r1", crypto::CurveID::SECP256R1}};
app
.add_option(
"--curve-id",
curve_id,
"Elliptic curve to use as for node and network identities (used for TLS "
"and ledger signatures)")
->transform(CLI::CheckedTransformer(curve_id_map, CLI::ignore_case))
->capture_default_str();

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just moving this up, since its common to all subcommands (was previously amongst the start specific args).

@ghost
Copy link

ghost commented Apr 27, 2021

curve_id_tests@24233 aka 20210427.21 vs main ewma over 20 builds from 23891 to 24212

Click to see table
build_id build_number sb_sgx_cft^ sb_sgx_cft_mem sb_sgx_bft^ sb_sgx_bft_mem sb_ws_sgx_cft^ sb_ws_sgx_cft_mem sb_sig_sgx_cft^ sb_sig_sgx_cft_mem tpcc_sgx_cft^ tpcc_sgx_cft_mem tpcc_sgx_bft^ tpcc_sgx_bft_mem ls_sgx_cft^ ls_sgx_cft_mem ls_ws_sgx_cft^ ls_ws_sgx_cft_mem ls_jwt_sgx_cft^ ls_jwt_sgx_cft_mem ls_js_sgx_cft^ ls_js_sgx_cft_mem ls_js_jwt_sgx_cft^ ls_js_jwt_sgx_cft_mem CHAMP put (/s)^ CHAMP get (/s)^
23891 20210421.20 26020.5 1.27181e+07 14510.6 3.89325e+07 34858.3 1.37667e+07 4779.15 1.03588e+07 6296.51 9.13613e+07 3376.8 1.54014e+08 24958.5 1.76989e+07 28986.3 1.74367e+07 4208.58 1.45532e+07 2057.93 8.52384e+06 1468.53 8.2617e+06 1.32026e+06 3.5993e+07
23902 20210421.23 29024.6 1.27181e+07 14188 3.76218e+07 32624.5 1.32424e+07 4933.42 1.03588e+07 6640.99 9.55556e+07 3411.93 1.6083e+08 24136.8 1.74367e+07 29995.4 1.76989e+07 4193.8 1.45532e+07 1957.65 1.08831e+07 1450.09 1.00967e+07 1.33593e+06 3.61837e+07
23935 20210422.1 29164.9 1.32424e+07 14648 3.86704e+07 33732.3 1.32424e+07 4954.08 1.03588e+07 6616.79 9.29342e+07 3437.18 1.84422e+08 24484.3 1.74367e+07 30197.7 1.7961e+07 4280.27 1.45532e+07 2072.1 1.11453e+07 1430.83 9.83456e+06 1.31618e+06 3.54933e+07
23939 20210422.3 27264 1.29803e+07 15093.1 3.86704e+07 34205.4 1.32424e+07 4723.37 1.0621e+07 6851.11 9.21478e+07 3389.46 1.53752e+08 21889.4 1.71746e+07 29197.3 1.7961e+07 4197.12 1.4291e+07 2024.42 1.08831e+07 1448.17 7.99955e+06 1.32572e+06 3.63121e+07
23982 20210422.16 23703.9 1.29803e+07 14227.7 3.7884e+07 32065.8 1.32424e+07 4889.86 1.03588e+07 6618.55 9.10992e+07 3388.95 1.90452e+08 23798.1 1.76989e+07 29137.9 1.74367e+07 4282.86 1.45532e+07 2085.87 8.52384e+06 1448.66 8.2617e+06 1.32487e+06 3.62478e+07
24000 20210422.21 23846.7 1.29803e+07 13503.4 3.89325e+07 32093.2 1.32424e+07 5070.19 1.03588e+07 6645.6 9.31964e+07 3370.82 1.6214e+08 23027 1.74367e+07 28402.6 1.76989e+07 4394.56 1.48153e+07 1942.6 8.2617e+06 1446.36 8.2617e+06 1.31222e+06 3.59292e+07
24012 20210422.25 25981.7 1.27181e+07 15186 4.49619e+07 31815.6 1.32424e+07 4958.95 1.03588e+07 6599.01 9.08371e+07 3100.92 1.97268e+08 24539 1.74367e+07 30739.4 1.76989e+07 4219.52 1.48153e+07 2048.02 1.11453e+07 1452.13 8.2617e+06 1.35314e+06 3.59923e+07
24036 20210422.31 25472.3 1.27181e+07 15027 3.86704e+07 32059 1.32424e+07 5465.64 1.03588e+07 6646.94 9.13613e+07 3488 1.76034e+08 22669.6 1.71746e+07 29772.5 1.95339e+07 4182.98 1.48153e+07 2078.85 8.52384e+06 1492.55 7.99955e+06 1.33802e+06 3.54933e+07
24056 20210422.38 25788.8 1.29803e+07 14236.8 3.84083e+07 32343.8 1.32424e+07 4878.96 9.83456e+06 6494.3 9.16235e+07 3390 1.64237e+08 25169.5 1.74367e+07 27526.1 1.76989e+07 3915.91 1.45532e+07 2066.73 8.52384e+06 1463.59 7.99955e+06 1.35439e+06 3.63121e+07
24066 20210422.40 24064.6 1.27181e+07 14404.7 3.81461e+07 29076.4 1.37667e+07 4934.68 1.03588e+07 6610.75 9.08371e+07 3464.61 1.61354e+08 23278.6 1.74367e+07 30346.3 1.7961e+07 3889.16 1.4291e+07 2016.94 1.08831e+07 1380.62 7.73741e+06 1.35011e+06 3.62471e+07
24074 20210422.43 26250.8 1.29803e+07 14868.3 4.02433e+07 33041.3 1.32424e+07 4762.52 1.00967e+07 6779.84 9.16235e+07 3408.24 1.5847e+08 22049.2 1.74367e+07 30268.3 1.82232e+07 4197.24 1.45532e+07 2043.85 1.0621e+07 1454.25 7.99955e+06 1.32667e+06 3.61199e+07
24088 20210423.1 29120 1.29803e+07 14536.4 3.76218e+07 35473.8 1.37667e+07 5063 1.00967e+07 6744.07 9.16235e+07 3329.47 1.57159e+08 24548.5 1.76989e+07 29260.2 1.82232e+07 4005.61 1.4291e+07 1954.04 8.52384e+06 1417.56 7.99955e+06 1.30603e+06 3.62478e+07
24092 20210423.3 29279.1 1.32424e+07 14388.8 3.91947e+07 31936.2 1.32424e+07 4840.82 1.00967e+07 6682.96 9.16235e+07 3451.06 1.45363e+08 23960 1.76989e+07 26990.2 1.7961e+07 4197.44 1.50774e+07 2122.31 1.11453e+07 1407.45 7.99955e+06 1.3478e+06 3.62478e+07
24123 20210423.13 26380.3 1.29803e+07 14777.2 3.89325e+07 32531.8 1.32424e+07 4982.9 1.03588e+07 6179.46 8.97885e+07 3410.7 1.60305e+08 25779.1 1.7961e+07 30784.9 1.7961e+07 4084.32 1.4291e+07 2056.27 8.52384e+06 1490.08 7.99955e+06 1.34621e+06 3.61831e+07
24136 20210426.1 29237 1.32424e+07 14661.4 4.02433e+07 33873.4 1.35046e+07 5339.42 1.03588e+07 6312.89 9.31964e+07 3006.54 2.03821e+08 22870 1.7961e+07 30301.6 1.7961e+07 3841.53 1.4291e+07 2034.98 8.2617e+06 1450.92 8.2617e+06 1.35539e+06 3.63121e+07
24137 20210426.2 27671.2 1.29803e+07 14710.4 3.89325e+07 34775.5 1.35046e+07 4928.92 1.00967e+07 6674.46 9.13613e+07 3332.38 1.58994e+08 23378.4 1.74367e+07 30118.7 1.76989e+07 4185.26 1.45532e+07 2013.91 8.52384e+06 1479.32 7.99955e+06 1.33794e+06 3.62471e+07
24144 20210426.4 24563.9 1.27181e+07 14629.7 3.81461e+07 32024.7 1.32424e+07 4611.91 1.03588e+07 6295.36 9.18856e+07 3260.85 1.54276e+08 24451.2 1.74367e+07 28580.1 1.76989e+07 4194.21 1.45532e+07 1977.29 1.0621e+07 1445.89 7.99955e+06 1.33229e+06 3.59923e+07
24170 20210427.1 26081.9 1.27181e+07 14595.7 4.12918e+07 35038.6 1.37667e+07 4929.64 1.00967e+07 6319.63 9.10992e+07 3402.69 1.68694e+08 24172.1 1.76989e+07 31287.9 1.7961e+07 3819.48 1.45532e+07 2004.71 9.70349e+06 1461.08 8.13062e+06 1.30487e+06 3.54933e+07
24190 20210427.8 28431.9 1.29803e+07 14364.9 3.94568e+07 33428.9 1.35046e+07 4484.27 1.03588e+07 6913.26 9.37206e+07 3086.78 1.94908e+08 23407.4 1.74367e+07 27872 1.76989e+07 4025.91 1.37667e+07 2056.2 1.11453e+07 1448.79 9.31027e+06 1.34524e+06 3.59292e+07
24212 20210427.15 29470.4 1.27181e+07 13825.1 3.76218e+07 34364.6 1.35046e+07 4649.23 1.00967e+07 6453.33 9.16235e+07 3416.94 1.66335e+08 22315.3 1.71746e+07 29691.7 1.56017e+07 4190.75 1.48153e+07 2052.35 8.2617e+06 1458.6 7.99955e+06 1.34523e+06 3.60563e+07

images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants