Unverified Commit 3629bb6f authored by Steven Fackler's avatar Steven Fackler Committed by GitHub
Browse files

Merge pull request #1124 from Leo1003/eckey_debug

Add Debug impl for EcKey
parents 17975801 d2e48e8d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::c_int;
use std::fmt;
use std::ptr;

use bn::{BigNumContextRef, BigNumRef};
@@ -825,6 +826,12 @@ impl<T> Clone for EcKey<T> {
    }
}

impl<T> fmt::Debug for EcKey<T> {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "EcKey")
    }
}

#[cfg(test)]
mod test {
    use hex::FromHex;