Skip to main content

pczt/roles/tx_extractor/
transparent.rs

1use transparent::{
2    bundle::{Authorization, Authorized, MapAuth},
3    pczt::{TxExtractorError, Unbound},
4};
5use zcash_protocol::value::Zatoshis;
6
7pub(super) struct RemoveInputInfo;
8
9impl MapAuth<Unbound<Zatoshis>, Authorized> for RemoveInputInfo {
10    fn map_script_sig(
11        &self,
12        s: <Unbound<Zatoshis> as Authorization>::ScriptSig,
13    ) -> <Authorized as Authorization>::ScriptSig {
14        s.into()
15    }
16
17    fn map_authorization(&self, _: Unbound<Zatoshis>) -> Authorized {
18        Authorized
19    }
20}
21
22#[derive(Debug)]
23pub enum TransparentError {
24    Extract(TxExtractorError),
25}