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

Serde for Affine points #43

Closed
wants to merge 1 commit into from
Closed

Conversation

arthurgreef
Copy link

No description provided.

@arthurgreef
Copy link
Author

Hi there. Any change of a review soon? Thanks.

@arthurgreef
Copy link
Author

Hi - can someone take a look? Thanks.

@@ -20,6 +20,7 @@ all-features = true
rustdoc-args = ["--cfg", "docsrs", "--html-in-header", "katex-header.html"]

[dev-dependencies]
bincode = "1.2.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

https://crates.io/crates/bincode

Bincode attempts to protect against hostile data. There is a maximum size configuration available (bincode::config::Bounded), but not enabled in the default configuration. Enabling it causes pre-allocation size to be limited to prevent against memory exhaustion attacks.

We should probably enable bincode::config::Bounded.

@codecov-commenter
Copy link

Codecov Report

Merging #43 (37dedf2) into main (682a0e6) will increase coverage by 4.45%.
The diff coverage is 82.75%.

@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
+ Coverage   66.15%   70.60%   +4.45%     
==========================================
  Files          12       12              
  Lines        1427     1456      +29     
==========================================
+ Hits          944     1028      +84     
+ Misses        483      428      -55     
Impacted Files Coverage Δ
src/curves.rs 52.04% <72.22%> (+13.27%) ⬆️
src/lib.rs 100.00% <100.00%> (ø)
src/vesta.rs 74.07% <0.00%> (-25.93%) ⬇️
src/pallas.rs 84.48% <0.00%> (-15.52%) ⬇️
src/fields/fq.rs 84.00% <0.00%> (+4.28%) ⬆️
src/fields/fp.rs 84.57% <0.00%> (+4.28%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 682a0e6...37dedf2. Read the comment docs.

@arthurgreef
Copy link
Author

Thanks for the review @daira. I was not sure if my change is what you were looking for. Bincode is a dev dependency so that implementors can choose how they would like to serde. I added bincode options to the test.

@arthurgreef
Copy link
Author

Hey @daira, any chance you could take another look? Thanks.

@daira
Copy link
Contributor

daira commented Sep 7, 2022

This and #48 appear to conflict.

@arthurgreef
Copy link
Author

Hi @daira , This PR can be rejected when/if #48 is accepted. Thanks.

@str4d
Copy link
Contributor

str4d commented Oct 13, 2022

Closing in favour of #48.

@str4d str4d closed this Oct 13, 2022
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.

4 participants