Segwit v2



Summary:

Johnson Lau proposed a change in commitment structure that is backwards compatible. His proposal is to merge two arrays, which will result in a more simple format but harder to compress. The format includes OP_RETURN, Push the following 36 bytes, Commitment header, Commitment hash, Extension roots and optional data. The extension roots are an array of extension identifier, extension root length and extension root. He provided an example of an extension root with size=2 and ext.id=0 and 1. Later, when all miners upgrade, they could stop using ext.id=1 and avoid putting unnecessary values in scriptSig.


Updated on: 2023-06-12T00:31:12.017438+00:00