Skip to main content
10 events
when toggle format what by license comment
Jan 16, 2020 at 16:56 history edited karimkorun CC BY-SA 4.0
should be SizeOfRedeemScript, not RedeemScript
Jan 16, 2020 at 16:56 comment added karimkorun @tipu Yes! edited. thanks!
Jan 16, 2020 at 16:52 comment added karimkorun len(script) is the length of the script.. in bytes.. @BT - it's pseudocode. it's not supposed to be complete. Here's an implementation I wrote, using exactly these functions github.com/blocktrail/blocktrail-sdk-php/blob/master/src/…
Jan 5, 2020 at 7:25 comment added B T These equations are very incomplete, ambiguous, and inconsistent, as others have mentioned. What is len(script)? Downvoted.
Dec 26, 2018 at 19:15 comment added tipu what is len(script) here ? should SizeOfVarIntFor(RedeemScript) be SizeOfVarIntFor(SizeOfRedeemScript) ? is lengthOfScript the same as SizeOfScriptSig? If not, how is lengthOfScript generated?
Jan 14, 2018 at 22:20 comment added karimkorun en.bitcoin.it/wiki/… it's documented here. scripts and vectors are both data-types with variable length, so we prefix them with the length the parser should try to read. They have variable size also, and so are relevant to size estimation :)
Aug 30, 2017 at 16:06 comment added Goko Gorgiovski @karimkorun what means SizeOfVarIntFor
Aug 2, 2017 at 18:25 comment added Murch I've added "sum(SizeOfOutputsArray)" to the last line, because it seemed to be missing.
Aug 2, 2017 at 18:22 history edited Murch CC BY-SA 3.0
Added output size to transaction size
Apr 11, 2017 at 15:08 history answered karimkorun CC BY-SA 3.0