Use Normal secp256k1::Point

This commit is contained in:
Tobin C. Harding 2020-10-22 10:37:06 +11:00
parent fce0ca3dd2
commit ad0d563d93
2 changed files with 4 additions and 7 deletions

View File

@ -8,7 +8,7 @@ edition = "2018"
anyhow = "1"
async-trait = "0.1"
bitcoin = { version = "0.23", features = ["rand", "serde"] }
cross-curve-dleq = { git = "https://github.com/comit-network/cross-curve-dleq", rev = "49171f5e08473d46f951fb1fc338fe437d974d3c" }
cross-curve-dleq = { git = "https://github.com/comit-network/cross-curve-dleq", rev = "3fc1726e4511d53a6cbcb91a42f479238eca688b" }
curve25519-dalek = "2"
ecdsa_fun = { git = "https://github.com/LLFourn/secp256kfun", rev = "510d48ef6a2b19805f7f5c70c598e5b03f668e7a", features = ["libsecp_compat", "serde", "serialization"] }
ed25519-dalek = { version = "1.0.0-pre.4", features = ["serde"] }# Cannot be 1 because they depend on curve25519-dalek version 3

View File

@ -10,10 +10,7 @@ use bitcoin::{
};
use ecdsa_fun::{
adaptor::Adaptor,
fun::{
marker::{Jacobian, Mark},
Point, Scalar,
},
fun::{Point, Scalar},
nonce::Deterministic,
ECDSA,
};
@ -87,9 +84,9 @@ impl SecretKey {
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct PublicKey(Point);
impl From<PublicKey> for Point<Jacobian> {
impl From<PublicKey> for Point {
fn from(from: PublicKey) -> Self {
from.0.mark::<Jacobian>()
from.0
}
}