Open ghost opened 4 years ago
Thanks! I probably don't have time to look into this anytime soon. Let me know if you figure it out :)
Seems to be two issues:
sn_serialize
does not serialize the number zero. Easy fix.0x
in stack
output which seems like an accident; not shown in stack_hex
at all. Perhaps an empty array could be displayed as []
in both cases?Documentation: https://en.bitcoin.it/wiki/Script OP_0, OP_FALSE An empty array of bytes is pushed onto the stack. (This is not a no-op: an item is added to the stack.)
Perhaps an empty array could be displayed as
[]
in both cases?
sounds good to me!
examples: