Impl Debug for EdwardsBasepointTable

This commit is contained in:
Henry de Valence 2017-11-16 11:09:45 -08:00
parent 6f5f0c51fd
commit b966f942a8

View file

@ -1144,6 +1144,17 @@ impl Debug for ProjectiveNielsPoint {
}
}
impl Debug for EdwardsBasepointTable {
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
write!(f, "EdwardsBasepointTable([\n")?;
for i in 0..32 {
write!(f, "\t{:?},\n", &self.0[i])?;
}
write!(f, "])")
}
}
// ------------------------------------------------------------------------
// Variable-time functions
// ------------------------------------------------------------------------