arkworks-rs / crypto-primitives

Interfaces and implementations of cryptographic primitives, along with R1CS constraints for them
https://www.arkworks.rs
Apache License 2.0
165 stars 79 forks source link

Impl `CanonicalSerialize` and `CanonicalDeserialize` for `pedersen::Parameters` #107

Closed rozbb closed 1 year ago

rozbb commented 1 year ago

Two-line change. I have a write_to_file<S: CanonicalSerialize>(filename: &Path, data: &S) function, but I can't use it with Pedersen parameters. This fixes that problem.