mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-08 14:32:24 -04:00
Upgrade rust-bitcoin to 0.25
This commit is contained in:
parent
fa6b696c45
commit
624716d8a7
10 changed files with 139 additions and 239 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue