Make ecdsa/private.rs a bit more pretty.

This commit is contained in:
2019-02-10 17:47:11 -08:00
parent 3716dba87c
commit a426ca3901

View File

@@ -23,9 +23,8 @@ pub trait ECCPrivateKey {
macro_rules! generate_privates macro_rules! generate_privates
{ {
($curve: ident, $base: ident, $sig: ident, $dbl: ident, $quad: ident) => { ($curve: ident, $base: ident, $sig: ident, $dbl: ident, $quad: ident) => {
impl ECCPrivateKey for ECCPrivate<$curve>
impl ECCPrivateKey for ECCPrivate<$curve> {
{
type Unsigned = $base; type Unsigned = $base;
fn new(d: $base) -> ECCPrivate<$curve> fn new(d: $base) -> ECCPrivate<$curve>
@@ -96,7 +95,7 @@ impl ECCPrivateKey for ECCPrivate<$curve>
} }
panic!("The world is broken; couldn't find a k in sign()."); panic!("The world is broken; couldn't find a k in sign().");
} }
} }
} }
} }