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