Skip to content

Commit a9b9a34

Browse files
authored
Use native rust-bitcoin methods for weight calculations (payjoin#360)
See payjoin#353 This deletes the custom `weight.rs` traits and `input_type.rs` helpers in favor of out-of-the-box rust-bitcoin methods. It also removes the unused `output_type.rs`.
2 parents d77e2ae + 3bb3df3 commit a9b9a34

File tree

9 files changed

+265
-602
lines changed

9 files changed

+265
-602
lines changed

payjoin/src/input_type.rs

-303
This file was deleted.

payjoin/src/lib.rs

-4
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ pub use v2::OhttpKeys;
3535
#[cfg(feature = "io")]
3636
pub mod io;
3737

38-
#[cfg(any(feature = "send", feature = "receive"))]
39-
pub(crate) mod input_type;
4038
#[cfg(any(feature = "send", feature = "receive"))]
4139
pub(crate) mod psbt;
4240
#[cfg(any(feature = "send", all(feature = "receive", feature = "v2")))]
@@ -45,8 +43,6 @@ mod request;
4543
pub use request::*;
4644

4745
mod uri;
48-
#[cfg(any(feature = "send", feature = "receive"))]
49-
pub(crate) mod weight;
5046

5147
#[cfg(feature = "base64")]
5248
pub use bitcoin::base64;

payjoin/src/output_type.rs

-25
This file was deleted.

0 commit comments

Comments
 (0)