diff --git a/src/types/params/public.rs b/src/types/params/public.rs index 90b320c0e..b6cebe5dc 100644 --- a/src/types/params/public.rs +++ b/src/types/params/public.rs @@ -251,8 +251,8 @@ impl fmt::Debug for PublicParams { } => f .debug_struct("PublicParams::Elgamal") .field("p", &p) - .field("g", &y) - .field("y", &g) + .field("g", &g) + .field("y", &y) .finish(), PublicParams::EdDSA { ref curve, ref q } => f