ZK-Garage / plonk

A pure Rust PLONK implementation using arkworks as a backend.
https://discord.gg/XWJdhVf37F
Mozilla Public License 2.0
295 stars 76 forks source link

Add scalar conversion functions #27

Closed davidnevadoc closed 3 years ago

davidnevadoc commented 3 years ago

Resolves #26

davidnevadoc commented 3 years ago

As far as I know these functions are only used in tests. For this reason they don't have their specific type of error and they are left in util.rs.

If this functionality is needed for something apart from tests and examples we should introduce types for each of these 2 scalars with their associated conversion functions and errors.