diff --git a/src/public.rs b/src/public.rs index 1ee1ce0..f36ec99 100644 --- a/src/public.rs +++ b/src/public.rs @@ -34,10 +34,10 @@ where let mut buf = ::Repr::default(); buf.read_le(&mut reader)?; - let hash = + let epoch = E::Fr::from_repr(buf).map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?; buf.read_le(&mut reader)?; - let epoch = + let hash = E::Fr::from_repr(buf).map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?; Ok(RLNSignal { epoch, hash })