Segwit commitment to post-quantum witness data?

I think a per-input commitment is cleaner, but other than that I have little arguments against per-tx. There shouldn’t be a bandwidth difference (the commitment is elided in serialization), and the impact of verifying the hashing structure should be pretty minimal (if the commitment to the per-tx set of all higher-style witnesses uses per-txin hash that gets aggregated into a per-tx hash, the impact may even be zero).

One downside to per-txin is that it places a per-txin lower bound of 32 WU on the (combination of) all future-style witnesses. That’s immaterial if the future-style witnesses are hash-based pqdata, but is perhaps a concern if it’s just an P2MR ECC construction that aims for a CISA-like fee profile (which is justified for half-aggregation possibly, as its CPU cost equals that of batch validation).

Per-tx sounds like something natural for combining with CISA, as that naturally adds more per-tx context to both signing and verification.

I meant in an annex-like thing inside the new-style witness, which could be arbitrarily discounted by whatever rules that new style has.

Yeah, I guess that makes more sense. That also avoids the need for duplicating the public key (in the witness/annex) and public key commitment (in the script).

1 Like