Author

Topic: Technical question on Segwit (Read 166 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
January 20, 2018, 11:41:25 PM
#2
Read the Segwit BIPs: 141, 143, and 144
newbie
Activity: 12
Merit: 1
January 20, 2018, 07:18:27 PM
#1
A few years ago I created my personal blockchain browser. Now I am trying to update this browser for Segwit. I have limited knowledge of the cryptography and I just try to analyse the blockchain data. I see that in a Segwit transaction for every transaction input there is a Segwit part. This Segwit part seems to have three different structures identified by the value of the first byte: 0, 2 or 4. Structure 0 has zero length Segwit part, 2 has two variable fields Segwit data and 4 has three variable fields Segwit data. Are there more than those three possible values? Can someone explain the meaning of these three different Segwit data structures?
Jump to: