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

Make Zcash string serialization consistent with deserialization #2053

Merged

Conversation

teor2345
Copy link
Contributor

Motivation

After recent changes, String serialization was write_string, but deserialization was zcash_deserialize.

Solution

Make them both into zcash_{de,}serialize methods.

Review

This is a tiny low-priority cleanup. Anyone can review.

Related Issues

#1925 Stop untrusted preallocation during deserialization

After recent changes, serialization was `write_string`, but
deserialization was `zcash_deserialize`.
@teor2345 teor2345 added A-rust Area: Updates to Rust code C-cleanup Category: This is a cleanup P-Low labels Apr 21, 2021
@teor2345 teor2345 requested a review from a team April 21, 2021 23:01
@teor2345 teor2345 self-assigned this Apr 21, 2021
@teor2345 teor2345 changed the title Make String Zcash serialization consistent with deserialization Make Zcash string serialization consistent with deserialization Apr 21, 2021
@dconnolly dconnolly merged commit 7b13d55 into ZcashFoundation:main Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rust Area: Updates to Rust code C-cleanup Category: This is a cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants