diff --git a/pczt/src/lib.rs b/pczt/src/lib.rs index f0087791a5..c29c6e9367 100644 --- a/pczt/src/lib.rs +++ b/pczt/src/lib.rs @@ -80,11 +80,6 @@ impl Pczt { postcard::from_bytes(&bytes[8..]).map_err(ParseError::Invalid) } - /// Replaces the Orchard bundle in this PCZT. - pub fn set_orchard(&mut self, orchard: orchard::Bundle) { - self.orchard = orchard; - } - /// Serializes this PCZT. pub fn serialize(&self) -> Vec { let mut bytes = vec![]; diff --git a/pczt/src/orchard.rs b/pczt/src/orchard.rs index 68edfd51c3..0a9cc8fa5b 100644 --- a/pczt/src/orchard.rs +++ b/pczt/src/orchard.rs @@ -474,7 +474,7 @@ impl Bundle { ) } - pub fn serialize_from(bundle: orchard::pczt::Bundle) -> Self { + pub(crate) fn serialize_from(bundle: orchard::pczt::Bundle) -> Self { let actions = bundle .actions() .iter()