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

Deprecate old field vector conversion methods #863

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

divergentdave
Copy link
Contributor

This deprecates FieldElement::slice_into_byte_vec() and FieldElement::byte_slice_into_vec(), along with the error variant FieldError::Codec, which is only used by the latter. Internal uses in Prio2 and related tests are updated to use the Share type. As laid out in #278 (comment), Encode and Decode with strongly typed messages is preferred over these methods. Removing the enum variant will eliminate the possibility of a FieldError in a CodecError in a FieldError.

If we like, we could also go back and delete the #[deprecated] code before release.

@divergentdave divergentdave requested a review from a team as a code owner December 1, 2023 16:03
@divergentdave divergentdave merged commit 995a0e5 into main Dec 4, 2023
6 checks passed
@divergentdave divergentdave deleted the david/deprecate-field-vector-conversions branch December 4, 2023 18:36
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.

3 participants