Commit Graph

9 Commits

Author SHA1 Message Date
Zahary Karadjov c1b1766f86 Fixes for bugs discovered while testing the Hexary Trie
Bugfixes:

* `rlp.rawData` was returning a wider than necessary range when
  called over a `listElem` result.

* Appending `Rlp` objects to a `RlpWriter` was producing incorrect
  results.

New features:

* When the Rlp reading cursor is positioned over a list, you can call
  `enterList` to position the cursor to the first list element.
  Call `skipElem` to move the cursor further.

* `rlpFromHex` will now accept leading `0x` symbols (often used in the
  Ethereum world).

* `rlp.inspect` will now print hex characters by default. Use the
  optional parameter `hexOutput` to control the behavior.
2018-06-23 20:04:47 +03:00
Yuriy Glukhov 078aa161dd Workaround enum serialization 2018-05-18 12:46:23 +03:00
Zahary Karadjov 8d7dd1acb1 Bugfix: objects with array fields were not deserialized properly
fixes #10

The commit also introduces a common base type for all RLP exceptions
2018-05-17 16:11:03 +03:00
Yuriy Glukhov 6dddfdf675 Fixed seq[byte] and seq[char] serialization 2018-05-15 20:11:30 +03:00
Yuriy Glukhov 9ed7e7b37b openarray[byte] is now treated as blob instead of list 2018-03-31 12:47:05 +03:00
Yuriy Glukhov 5861464710 Use new ranges 2018-03-27 10:53:55 +03:00
Yuriy Glukhov 069d73df31 Fixed listElem 2018-03-20 17:03:21 +02:00
Zahary Karadjov ce79722d43 use the new status-im/ranges library 2018-02-16 17:28:19 +02:00
Zahary Karadjov 78ec433770 nim-rlp version 1.0 2018-01-30 22:18:58 +02:00