From b966f942a86713c64d403974e524a1384c6aac50 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Thu, 16 Nov 2017 11:09:45 -0800 Subject: [PATCH] Impl Debug for EdwardsBasepointTable --- src/edwards.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/edwards.rs b/src/edwards.rs index 849df1f..5adb792 100644 --- a/src/edwards.rs +++ b/src/edwards.rs @@ -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 // ------------------------------------------------------------------------