Skip to content

Commit

Permalink
dep version bump: secp256k1 0.29 -> 0.30; secp 0.3 -> 0.4
Browse files Browse the repository at this point in the history
This bumps secp256k1 to 0.30 and the interface library secp to 0.4.
  • Loading branch information
conduition committed Nov 1, 2024
1 parent ddbc722 commit e02f44c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ hmac = { version = "0.12.1", default-features = false, features = [] }
k256 = { version = "0.13.1", default-features = false, optional = true }
once_cell = { version = "1.18.0", default-features = false }
rand = { version = "0.8.5", optional = true, default-features = false, features = ["std_rng"] }
secp = { version = "0.3", default-features = false }
secp256k1 = { version = "0.29", optional = true, default-features = false }
secp = { version = "0.4", default-features = false }
secp256k1 = { version = "0.30", optional = true, default-features = false }
serde = { version = "1.0.188", default-features = false, optional = true }
serdect = { version = "0.2.0", default-features = false, optional = true, features = ["alloc"] }
sha2 = { version = "0.10.8", default-features = false }
Expand All @@ -29,7 +29,7 @@ serde_json = "1.0.107"
csv = "1.3.0"
serdect = "0.2.0"
rand = "0.8.5"
secp = { version = "0.3", default-features = false, features = ["serde", "rand", "secp256k1-invert"] }
secp = { version = "0.4", default-features = false, features = ["serde", "rand", "secp256k1-invert"] }

[features]
default = ["secp256k1"]
Expand Down
4 changes: 2 additions & 2 deletions src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,14 @@ mod secp256k1_conversions {
impl TryFrom<secp256k1::schnorr::Signature> for CompactSignature {
type Error = DecodeError<Self>;
fn try_from(signature: secp256k1::schnorr::Signature) -> Result<Self, Self::Error> {
Self::try_from(signature.serialize())
Self::try_from(signature.to_byte_array())
}
}

impl TryFrom<secp256k1::schnorr::Signature> for LiftedSignature {
type Error = DecodeError<Self>;
fn try_from(signature: secp256k1::schnorr::Signature) -> Result<Self, Self::Error> {
Self::try_from(signature.serialize())
Self::try_from(signature.to_byte_array())
}
}

Expand Down

0 comments on commit e02f44c

Please sign in to comment.