Skip to content

Commit

Permalink
Use native rust-bitcoin methods for weight calculations (#360)
Browse files Browse the repository at this point in the history
See #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`.
  • Loading branch information
DanGould authored Oct 8, 2024
2 parents d77e2ae + 3bb3df3 commit a9b9a34
Show file tree
Hide file tree
Showing 9 changed files with 265 additions and 602 deletions.
303 changes: 0 additions & 303 deletions payjoin/src/input_type.rs

This file was deleted.

4 changes: 0 additions & 4 deletions payjoin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ pub use v2::OhttpKeys;
#[cfg(feature = "io")]
pub mod io;

#[cfg(any(feature = "send", feature = "receive"))]
pub(crate) mod input_type;
#[cfg(any(feature = "send", feature = "receive"))]
pub(crate) mod psbt;
#[cfg(any(feature = "send", all(feature = "receive", feature = "v2")))]
Expand All @@ -45,8 +43,6 @@ mod request;
pub use request::*;

mod uri;
#[cfg(any(feature = "send", feature = "receive"))]
pub(crate) mod weight;

#[cfg(feature = "base64")]
pub use bitcoin::base64;
Expand Down
25 changes: 0 additions & 25 deletions payjoin/src/output_type.rs

This file was deleted.

Loading

0 comments on commit a9b9a34

Please sign in to comment.