Skip to content

Commit 638afa1

Browse files
committed
make parse_descriptor private
1 parent 166cc3c commit 638afa1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "descriptor-codec"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "Encode and decode Bitcoin wallet descriptors with a 30-40% size reduction"
55
keywords = [ "bitcoin", "descriptor", "miniscript", "codec", "encode" ]
66
authors = ["Joshua Doman <joshsdoman@gmail.com>"]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub fn decode(bytes: &[u8]) -> Result<String, Error> {
9595
///
9696
/// Re-implements `parse_descriptor` from `miniscript/descriptor` to handle MultiXPrivs by replacing
9797
/// each MultiXPriv with an indexed dummy SinglePub and adding the MultiXpriv to the key map.
98-
pub fn parse_descriptor<C: secp256k1::Signing>(
98+
fn parse_descriptor<C: secp256k1::Signing>(
9999
secp: &secp256k1::Secp256k1<C>,
100100
s: &str,
101101
) -> Result<(Descriptor<DescriptorPublicKey>, KeyMap), miniscript::Error> {

0 commit comments

Comments
 (0)