Although probably not an issue in practice, I'm confused how nonce of zero is encoded in transactions.
According to RLP doc, \x00
should be encoded as \x00
. But the source code of pyethereum shows that 0
is encoded as empty string ''
, i.e. nothing.
nonce is the number of transactions already sent by that account, encoded in binary form (eg. 0 -> '', 7 -> '\x07', 1000 -> '\x03\xd8').
Apparently, the latter is used in practice. Why is it inconsistent with the RLP doc?