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

Assorted chores #166

Merged
merged 12 commits into from
Jan 18, 2024
Merged

Assorted chores #166

merged 12 commits into from
Jan 18, 2024

Conversation

piotr-roslaniec
Copy link

@piotr-roslaniec piotr-roslaniec commented Oct 31, 2023

Type of PR:

  • Other

Required reviews:

  • 1

What does it do:

  • Fixes a bunch of smaller chores
  • Removes support for deprecated Python versions, adds support for Python 3.12
  • Adds a CI job to compile benchmarks without running them (benchmarks were disabled a while back because there was some issue with report uploading)
  • Removes unused curves (unused code) from the codebase

Issues fixed/closed:

@codecov-commenter
Copy link

codecov-commenter commented Oct 31, 2023

Codecov Report

Merging #166 (58002f5) into main (13d9d26) will increase coverage by 0.05%.
The diff coverage is 97.77%.

@@            Coverage Diff             @@
##             main     #166      +/-   ##
==========================================
+ Coverage   77.95%   78.01%   +0.05%     
==========================================
  Files          23       23              
  Lines        5053     5066      +13     
==========================================
+ Hits         3939     3952      +13     
  Misses       1114     1114              
Files Coverage Δ
ferveo-common/src/keypair.rs 72.97% <100.00%> (+0.53%) ⬆️
ferveo-tdec/src/ciphertext.rs 97.95% <ø> (ø)
ferveo-tdec/src/combine.rs 98.51% <ø> (ø)
ferveo-tdec/src/context.rs 98.03% <ø> (ø)
ferveo-tdec/src/decryption.rs 70.72% <ø> (ø)
ferveo-tdec/src/hash_to_curve.rs 100.00% <ø> (ø)
ferveo-tdec/src/key_share.rs 32.60% <ø> (ø)
ferveo-tdec/src/lib.rs 99.78% <ø> (ø)
ferveo-tdec/src/secret_box.rs 63.15% <ø> (ø)
ferveo/src/api.rs 88.93% <100.00%> (+0.02%) ⬆️
... and 6 more

... and 1 file with indirect coverage changes

@piotr-roslaniec piotr-roslaniec marked this pull request as ready for review November 2, 2023 09:54
@cygnusv
Copy link
Member

cygnusv commented Nov 7, 2023

@piotr-roslaniec what do you think of ferveo-tdec instead of ferveo-tpke? I know that I suggested it, but in retrospective I don't know why I didn't think of that before!

@piotr-roslaniec
Copy link
Author

@cygnusv Makes sense, also tpke doesn't quite roll off the tongue. I will update this PR shortly.

@@ -1,5 +1,5 @@
[package]
name = "group-threshold-cryptography-pre-release"
name = "ferveo-tdec"
Copy link
Member

Choose a reason for hiding this comment

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

Ah, so refreshing!

Copy link
Member

Choose a reason for hiding this comment

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

README still refers to tpke

@@ -5,7 +5,7 @@ use ark_ec::pairing::Pairing;
use criterion::{
black_box, criterion_group, criterion_main, BenchmarkId, Criterion,
};
use group_threshold_cryptography_pre_release::{
use ferveo_tdec::{
Copy link
Member

Choose a reason for hiding this comment

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

This remind me of a situation a couple of months ago that was making me crazy when working with Ferveo until I realized (or actually, you pointed out). Even though the package and directory are called ferveo-tdec, the crate is automatically renamed to ferveo_tdec. Do you think it would be worth to rename everything to underscores?

Copy link
Author

Choose a reason for hiding this comment

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

Using both - and _ as a separator in crate names is fine. There is a debate on setting the naming convention.

I'm fine with renaming all crates, we have to republish them anyway. The directories should remain named according to the kebab-case.

Copy link
Author

Choose a reason for hiding this comment

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

I've documented this as a todo here: #122

Copy link
Member

Choose a reason for hiding this comment

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

The directories should remain named according to the kebab-case

Why?

Copy link
Author

Choose a reason for hiding this comment

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

Well, I can't cite any specific source on that, but I think it's a cargo project convention. I think, very generally speaking, top-level modules (including *.rs files) are to use kebab-case and non-top-level files (never directories) are to use snake_case.

@piotr-roslaniec piotr-roslaniec merged commit 7350d91 into main Jan 18, 2024
10 checks passed
@piotr-roslaniec piotr-roslaniec deleted the chores branch January 18, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants