Skip to content

Conversation

@ninastef
Copy link

@ninastef ninastef commented Nov 24, 2025

Describe your changes

Hello! This PR refactors the deserialization logic for RpoRandomCoin and RpxRandomCoin by extracting common functionality into a reusable utility function, eliminating code duplication and improving maintainability.

  • New utility function read_felt_array in utils/mod.rs for deserializing arrays of Felt elements
  • Provides a generic helper for reading arrays of Felt from a ByteReader

Checklist before requesting a review

  • Repo forked and branch created from next according to naming convention.
  • Commit messages and codestyle follow conventions.
  • Documentation/comments updated according to changes.

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.

1 participant