Skip to content

Commit

Permalink
Merge pull request #177 from benthecarman/rand-std
Browse files Browse the repository at this point in the history
Re-export secp256k1_zkp
  • Loading branch information
Tibo-lg authored Dec 4, 2023
2 parents 3c9e023 + e335e35 commit 6b5d0da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dlc-messages/src/message_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ macro_rules! handle_read_dlc_messages {
}};
}

fn read_dlc_message<R: ::lightning::io::Read>(
/// Parses a DLC message from a buffer.
pub fn read_dlc_message<R: ::lightning::io::Read>(
msg_type: u16,
mut buffer: &mut R,
) -> Result<Option<WireMessage>, DecodeError> {
Expand Down
2 changes: 1 addition & 1 deletion dlc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ serde = { version = "1.0", default-features = false, optional = true }
# for benchmarks
unstable = []
default = ["std"]
std = ["bitcoin/std", "miniscript/std"]
std = ["bitcoin/std", "miniscript/std", "secp256k1-zkp/rand-std"]
no-std = ["dep:hashbrown", "miniscript/no-std", "bitcoin/no-std"]
use-serde = ["serde", "secp256k1-zkp/use-serde"]

Expand Down
2 changes: 1 addition & 1 deletion dlc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern crate bitcoin;
extern crate core;
extern crate miniscript;
extern crate secp256k1_sys;
extern crate secp256k1_zkp;
pub extern crate secp256k1_zkp;
#[cfg(feature = "serde")]
extern crate serde;

Expand Down

0 comments on commit 6b5d0da

Please sign in to comment.