28 Commits

Author SHA1 Message Date
Zahary Karadjov
8114c9fe1e Alternative fix for the Nimble binary-only package problem 2018-12-27 00:00:41 +02:00
Zahary Karadjov
1be7c93963 Add rlpFieldsCount helper and the ability to read objects not wrapped in lists 2018-10-16 02:09:11 +03:00
Zahary Karadjov
2b28b1a236 Add support for float64 2018-09-27 14:01:47 +03:00
Zahary Karadjov
def016260a use Bytes instead of seq[byte] 2018-09-26 12:57:04 +03:00
Zahary Karadjov
3678058f85 add a comment for a possible future optimization 2018-09-26 12:57:04 +03:00
Jacek Sieka
f0dcff9d64 wip: strange error 2018-09-26 12:57:04 +03:00
Zahary Karadjov
0426e181af new semantics for the rlpCustomSerialization pragma 2018-09-18 14:51:27 +03:00
Zahary Karadjov
6556821572 Allow specifying a custom serialization procedure for a particular field 2018-09-17 13:52:44 +03:00
Zahary Karadjov
1720345a24 move files arround to make nimble happy 2018-09-13 18:57:24 +03:00
Zahary Karadjov
961cc48b11 support for encoding and decoding of bool values 2018-07-22 14:19:24 +03:00
Zahary Karadjov
d75b09795b disable the IntLike concept
The Stint types don't conform to it at the moment anyway and this
simplifies the error messages in many situations.
2018-06-27 02:40:49 +03:00
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
Zahary Karadjov
790aef0a9d Make 'read' and 'append' easier to override for user-defined types
The 'rlp.inspect' output have been improved.
2018-05-18 14:32:06 +03:00
Yuriy Glukhov
63af57837d Workaround nim bug, startList made public 2018-05-16 11:46:06 +03:00
Yuriy Glukhov
6dddfdf675 Fixed seq[byte] and seq[char] serialization 2018-05-15 20:11:30 +03:00
Zahary Karadjov
a97cb6c32f handle char arrays as blobs just like byte arrays 2018-04-01 05:37:50 +03:00
Zahary Karadjov
8acf725628 rlp.read for openarrays 2018-04-01 05:20:46 +03:00
Zahary Karadjov
f903ad8bff add support for reading and writing enums 2018-04-01 04:37:06 +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
c1cc0f58a0 Added toBytes converters for ByteRange 2018-03-22 16:09:18 +02:00
Yuriy Glukhov
798b1ebaf1 Fixed range bug in slice 2018-03-14 14:47:24 +02:00
Zahary Karadjov
0b516cb2b6 wrap objects and tuples in lists by default 2018-03-13 18:16:53 +02:00
Alexander Ivanov
955a2afc87 Add support for uint 2018-02-21 12:34:07 +02:00
Alexander Ivanov
b082a14a8b Add support for SomeOrdinal 2018-02-21 12:27:34 +02:00
Zahary Karadjov
ce79722d43 use the new status-im/ranges library 2018-02-16 17:28:19 +02:00
Zahary Karadjov
a0f075865c work-around some compilation issues present in the trie library 2018-01-31 22:55:12 +02:00
Zahary Karadjov
78ec433770 nim-rlp version 1.0 2018-01-30 22:18:58 +02:00