payloadLen
returns the length of the data payload
size
torlpLen
returns the size of the rlp payload
toUintStrict
strict uint conversion. Encoded data must be 32 bytes in length
toAddress
expects a fixed 20 byte item. wil revert otherwisetoUint
explicit check added to cap the encoded byte length to 32 bytes
toUint
edge case with a 32 byte uint. Do not need to right shift if the uint is 32 bytes in length. right shifting caused a revert otherwise.
- removed error strings in
require
statements to reduce deployment gas costs for users of this reader
size(RlpItem)
returns the byte length of the rlp item
- Upgraded contract to solidity version
v0.5.0
- added checks for when the rlp item is empty.
- More tests for the added checks
toRlpBytes(RlpItem)
converts an rlp item back into its raw rlp encoded byte form
- relax the
toAddress(RlpItem)
requirement to allow short address conversions.
- Bugfix in
copy
that did not work properly if the length to copy was an evm word or longer
- First Release. RLP decoding