I'm trying to write a parsing function to find the input and output fields in a serialised transaction.
My problem is that I can find the number of inputs and outputs using the varint byte(s), but not the length of each serialised input and output, since the scriptsig and scriptpubkey fields are not fixed sizes.
I can't find any other way to find the sizes in the serialised bytes, help is much appreciated.