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

Stop gap fix serde #425

Closed

Conversation

pinkforest
Copy link

Cc/ @dignifiedquire @tarcieri

serde skip requires a default for BoxedMontyParams associated n_params since it's not an option at RsaPublicKey

@@ -31,7 +38,7 @@ pub struct RsaPublicKey {
/// Typically 0x10001 (65537)
e: u64,

#[cfg_attr(feature = "serde", serde(skip))]
#[cfg_attr(feature = "serde", serde(skip, default = "default_nparams"))]
Copy link
Member

Choose a reason for hiding this comment

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

is there no way to construct this during deserialization from the actual values?

Copy link
Author

Choose a reason for hiding this comment

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

yeah would need to impl 'De obvs - just needed to get this to compile in the meantime to see errors w/ all-featuers - will plug this later once I understand more what I'm doing in here 🤣

@dignifiedquire
Copy link
Member

not needed anymore

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.

2 participants