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
13 changes: 11 additions & 2 deletions zebra-chain/src/orchard/orchard_flavor_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ use proptest_derive::Arbitrary;

use orchard::{note_encryption::OrchardDomainCommon, orchard_flavor};

use crate::serialization::{ZcashDeserialize, ZcashSerialize};
use crate::{
orchard_zsa,
serialization::{ZcashDeserialize, ZcashSerialize},
};

#[cfg(feature = "tx-v6")]
use crate::orchard_zsa::{Burn, NoBurn};
Expand Down Expand Up @@ -50,7 +53,13 @@ pub trait OrchardFlavorExt: Clone + Debug {

/// A type representing a burn field for this protocol version.
#[cfg(feature = "tx-v6")]
type BurnType: Clone + Debug + Default + ZcashDeserialize + ZcashSerialize + TestArbitrary;
type BurnType: Clone
+ Debug
+ Default
+ ZcashDeserialize
+ ZcashSerialize
+ TestArbitrary
+ AsRef<[orchard_zsa::BurnItem]>;
}

/// A structure representing a tag for Orchard protocol variant used for the transaction version `V5`.
Expand Down
5 changes: 4 additions & 1 deletion zebra-chain/src/orchard_zsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ pub(crate) mod arbitrary;

mod common;

mod asset_state;
mod burn;
mod issuance;

pub(crate) use burn::{Burn, NoBurn};
pub(crate) use burn::{Burn, BurnItem, NoBurn};
pub(crate) use issuance::IssueData;

pub use asset_state::{AssetBase, AssetState, AssetStateChange, IssuedAssets, IssuedAssetsChange};
Loading