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

fix serde / no_std incompatibility #291

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

ryan-mob
Copy link
Contributor

updates serde Serialize and Deserialize implementations to use a custom visitor, allowing serde to be used without alloc or std for embedded, and making this consistent with implementations in curve25519-dalek.

as an alternative #288 (thanks @semenov-vladyslav)

@pinkforest seems like it'd be good to have some serde tests / this should go over #289?

src/signing.rs Outdated Show resolved Hide resolved
@pinkforest
Copy link
Contributor

@ryan-mob the CI is now in main - wanna rebase to that and remove serde from the exclude skip list ?

…lize` and `Deserialize` implementations to use a

custom visitor, removing the need for `alloc` or `std` for embedded use, and making this
consistent with implementations in
[curve25519-dalek](https://github.com/dalek-cryptography/curve25519-dalek/blob/a63e14f4ded078d6bf262ba0b3f47026bdd7f7c0/src/edwards.rs#L269).

@pinkforest seems like it'd be good to have some serde tests / this should go over dalek-cryptography#289?

Co-Authored-By: Vlad Semenov <semenov.vlad.by@gmail.com>
@tarcieri tarcieri merged commit 2931c68 into dalek-cryptography:main Mar 21, 2023
@ryan-mob
Copy link
Contributor Author

thanks!

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