Make ecdsa/private.rs a bit more pretty.
This commit is contained in:
@@ -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().");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user