From 07b94c8edf2ef36d5bde05b67624f4fef1a6c06c Mon Sep 17 00:00:00 2001 From: alexeykoren <2365507+alexeykoren@users.noreply.github.com> Date: Sat, 15 Feb 2025 15:05:46 +0100 Subject: [PATCH] Change visibility of dummy methods --- src/note.rs | 2 +- src/tree.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/note.rs b/src/note.rs index a08469ef1..407968fa8 100644 --- a/src/note.rs +++ b/src/note.rs @@ -245,7 +245,7 @@ impl Note { /// Defined in [Zcash Protocol Spec ยง 4.8.3: Dummy Notes (Orchard)][orcharddummynotes]. /// /// [orcharddummynotes]: https://zips.z.cash/protocol/nu5.pdf#orcharddummynotes - pub(crate) fn dummy( + pub fn dummy( rng: &mut impl RngCore, rho: Option, asset: AssetBase, diff --git a/src/tree.rs b/src/tree.rs index a10de6ea5..e8e13978f 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -114,7 +114,7 @@ impl From> for MerklePa impl MerklePath { /// Generates a dummy Merkle path for use in dummy spent notes. - pub(crate) fn dummy(mut rng: &mut impl RngCore) -> Self { + pub fn dummy(mut rng: &mut impl RngCore) -> Self { MerklePath { position: rng.next_u32(), auth_path: [(); MERKLE_DEPTH_ORCHARD]