Jacek Sieka
5ada369741
ptrops: add
2019-09-26 18:25:19 +03:00
Zahary Karadjov
5f1dc751ca
Convenience varints API going from int straight to openarray
2019-09-08 22:33:03 -04:00
Zahary Karadjov
888a5aa82d
Fix the failing overlaps test
2019-08-19 18:43:25 +03:00
Jacek Sieka
3689c58d1b
bitseq failing test
2019-08-19 18:43:25 +03:00
Zahary Karadjov
19fd0cc489
Hide the complexity of dealing with the BitSeq marker bit inside an efficient machine words iterator
2019-08-06 21:02:03 +03:00
Zahary Karadjov
6be00f7c4b
Extract the varints code being used in the latest LibP2P back-end
...
Originally, this code was taken from
https://github.com/status-im/nim-libp2p/blob/master/libp2p/varint.nim
The API was refactored to make it easier to use in the networking
back-ends where the data is being consumed byte by byte.
2019-08-01 17:21:14 +03:00
Zahary Karadjov
2334aa0fb3
More code migrated from the beacon-chain repo
2019-07-31 02:25:12 +03:00
Zahary Karadjov
3fce87f0f5
Refactor the bitranges module
...
* The bit procs defined over number values and openarray are now part of
the bitops2 module and use the more traditional LittleEndian indexing.
* Added BitSeq and BitArray types as defined in the ETH2 spec.
2019-07-31 02:20:49 +03:00
Jacek Sieka
7a87693eaf
refactor bitops2, add endians2
2019-07-06 20:47:08 +02:00
Jacek Sieka
904f84c8e0
add ranges
2019-07-06 20:45:27 +02:00
Jacek Sieka
c95cee45bc
add byteutils
2019-07-06 20:07:41 +02:00
Jacek Sieka
a9612d7320
add docs/appveyor/travis/test runner
2019-07-06 20:00:37 +02:00