Upgrade rust-bitcoin to 0.25

This commit is contained in:
Franck Royer 2020-12-03 17:28:23 +11:00
parent fa6b696c45
commit 624716d8a7
No known key found for this signature in database
GPG key ID: A82ED75A8DFC50A4
10 changed files with 139 additions and 239 deletions

View file

@ -37,7 +37,7 @@ impl SecretKey {
}
pub fn public(&self) -> PublicKey {
PublicKey(self.public.clone())
PublicKey(self.public)
}
pub fn to_bytes(&self) -> [u8; 32] {
@ -72,7 +72,7 @@ impl SecretKey {
}
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[derive(Debug, Copy, Clone, Serialize, Deserialize, PartialEq)]
pub struct PublicKey(Point);
impl From<PublicKey> for Point {