From 4f489688b36a5759bb10ee6e50a7dec3ab399baa Mon Sep 17 00:00:00 2001 From: benthecarman Date: Mon, 6 Nov 2023 16:59:10 -0600 Subject: [PATCH 1/2] Re-export secp256k1_zkp --- dlc/Cargo.toml | 2 +- dlc/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlc/Cargo.toml b/dlc/Cargo.toml index eee0ecc0..c9019263 100644 --- a/dlc/Cargo.toml +++ b/dlc/Cargo.toml @@ -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"] diff --git a/dlc/src/lib.rs b/dlc/src/lib.rs index 9ec63397..fff9a568 100644 --- a/dlc/src/lib.rs +++ b/dlc/src/lib.rs @@ -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; From e335e35c9637fe6fae8515b2fba71746d6fb0030 Mon Sep 17 00:00:00 2001 From: benthecarman Date: Mon, 6 Nov 2023 22:46:41 -0600 Subject: [PATCH 2/2] Make read_dlc_message public --- dlc-messages/src/message_handler.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlc-messages/src/message_handler.rs b/dlc-messages/src/message_handler.rs index 64829f39..84759923 100644 --- a/dlc-messages/src/message_handler.rs +++ b/dlc-messages/src/message_handler.rs @@ -94,7 +94,8 @@ macro_rules! handle_read_dlc_messages { }}; } -fn read_dlc_message( +/// Parses a DLC message from a buffer. +pub fn read_dlc_message( msg_type: u16, mut buffer: &mut R, ) -> Result, DecodeError> {