@@ -10,11 +10,15 @@ use mosaic_vs3::{Point, Scalar};
1010
1111use crate :: { Adaptor , GarblingTableCommitment , Seed , Signature } ;
1212
13+ /// Polynomials for all wide label values for a single wire
14+ pub type WideLabelWirePolynomials = [ Polynomial ; WIDE_LABEL_VALUE_COUNT ] ;
15+ /// Polynomial commitments for all wide label values for a single wire
16+ pub type WideLabelWirePolynomialCommitments = [ PolynomialCommitment ; WIDE_LABEL_VALUE_COUNT ] ;
17+
1318/// Input wire polynomials.
14- pub type InputPolynomials = [ [ Polynomial ; WIDE_LABEL_VALUE_COUNT ] ; N_INPUT_WIRES ] ;
19+ pub type InputPolynomials = [ WideLabelWirePolynomials ; N_INPUT_WIRES ] ;
1520/// Input wire polynomial commitments.
16- pub type InputPolynomialCommitments =
17- [ [ PolynomialCommitment ; WIDE_LABEL_VALUE_COUNT ] ; N_INPUT_WIRES ] ;
21+ pub type InputPolynomialCommitments = [ WideLabelWirePolynomialCommitments ; N_INPUT_WIRES ] ;
1822/// Output wire polynomial.
1923pub type OutputPolynomial = Polynomial ;
2024/// Output wire polynomial commitment.
@@ -80,10 +84,13 @@ pub type OpenedGarblingSeeds = [GarblingSeed; N_OPEN_CIRCUITS];
8084/// Seeds for garbling table generation for evaluation indices.
8185pub type EvalGarblingSeeds = [ GarblingSeed ; N_EVAL_CIRCUITS ] ;
8286
87+ /// Adaptor pre-signaures for all wide label values for a single wire
88+ pub type WideLabelWireAdaptors = [ Adaptor ; WIDE_LABEL_VALUE_COUNT ] ;
89+
8390/// Adaptor pre-signatures corresponding to deposit input wide label values for deposit wires.
8491pub type DepositAdaptors = [ Adaptor ; N_DEPOSIT_INPUT_WIRES ] ;
8592/// Adaptor pre-signatures for all wide label values for all withdrawal input wires.
86- pub type WithdrawalAdaptors = [ [ Adaptor ; WIDE_LABEL_VALUE_COUNT ] ; N_WITHDRAWAL_INPUT_WIRES ] ;
93+ pub type WithdrawalAdaptors = [ WideLabelWireAdaptors ; N_WITHDRAWAL_INPUT_WIRES ] ;
8794
8895/// Sighash used in transaction signing;
8996#[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
0 commit comments