Commit Graph

15 Commits

Author SHA1 Message Date
Paul Hauner
cd7aa21d36 Ensure ssz 0 vals are encoded correctly 2018-09-13 13:02:36 +10:00
Paul Hauner
5db0af59d7 Fix ssz typos and unused import 2018-09-13 13:02:15 +10:00
Paul Hauner
b6cfceb470 Add new ssz fn for getting highest set bit 2018-09-13 12:44:26 +10:00
Paul Hauner
e75905421d Change length bytes to 3, add decode stuff 2018-09-12 17:57:07 +10:00
Paul Hauner
dfae0acd06 Add comments to ssz decode 2018-09-11 13:32:23 +02:00
Paul Hauner
c205208b63 Fix bug in decoding, add more tests 2018-09-11 13:26:45 +02:00
Paul Hauner
176c6f5cb6 Tidy ssz lib; add comments, remove dup func. 2018-09-11 12:39:20 +02:00
Paul Hauner
3d3b1fcdda Break ssz encode into its own file. 2018-09-11 12:25:49 +02:00
Paul Hauner
51352c4657 Break decode out into own file 2018-09-11 12:17:54 +02:00
Paul Hauner
2d29c34892 Add (untested) ssz decode macro 2018-09-11 00:13:44 +02:00
Paul Hauner
fe95a0cce2 Implement ssz length decoding 2018-09-10 13:36:42 +02:00
Paul Hauner
0566d18153 Break impls out into own file 2018-09-10 09:13:08 +02:00
Paul Hauner
ffaffbcd90 Change ssz to use extend_from_slice()
This is instead of `append` which empties the source vector. This
doens't really ssem suitable for what we're doing.
2018-09-10 08:52:21 +02:00
Paul Hauner
67bbc75c86 Update ssz
- Add u16 and u8.
 - Add comments
 - Consildate functions
2018-09-10 07:50:35 +02:00
Paul Hauner
fd775e3252 Add WIP ssz module 2018-08-09 13:56:58 +10:00