Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pczt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ 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<u8> {
let mut bytes = vec![];
Expand Down
3 changes: 2 additions & 1 deletion pczt/src/orchard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ pub struct Spend {
///
/// This is set by the Signer.
#[serde_as(as = "Option<[_; 64]>")]
#[getset(get = "pub")]
pub(crate) spend_auth_sig: Option<[u8; 64]>,

/// The [raw encoding] of the Orchard payment address that received the note being spent.
Expand Down Expand Up @@ -473,7 +474,7 @@ impl Bundle {
)
}

pub(crate) fn serialize_from(bundle: orchard::pczt::Bundle) -> Self {
pub fn serialize_from(bundle: orchard::pczt::Bundle) -> Self {
let actions = bundle
.actions()
.iter()
Expand Down
2 changes: 1 addition & 1 deletion zcash_client_sqlite/src/wallet/commitment_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub struct SqliteShardStore<C, H, const SHARD_HEIGHT: u8> {
impl<C, H, const SHARD_HEIGHT: u8> SqliteShardStore<C, H, SHARD_HEIGHT> {
const SHARD_ROOT_LEVEL: Level = Level::new(SHARD_HEIGHT);

pub(crate) fn from_connection(
pub fn from_connection(
conn: C,
table_prefix: &'static str,
) -> Result<Self, rusqlite::Error> {
Expand Down