26 Commits

Author SHA1 Message Date
Vitalik Buterin
8fae0f8c78 Added support for SSZ partials 2019-05-30 09:42:42 -04:00
Vitalik Buterin
053d6e7805 Simplified hash tree root 2019-05-28 14:33:12 -04:00
Vitalik Buterin
4955c40a7b merge 2019-05-28 09:44:53 -04:00
Vitalik Buterin
19601df572 Starting work on partials 2019-05-28 09:30:35 -04:00
Hsiao-Wei Wang
f0ceefc36d
Make test_libs/pyspec/tests pass
1. Use `typing_inspect` library to check if it's `typing.List[Any]`. Use it in `is_list_type`.
2. Add `__hash__`, `__eq__`, `__repr__` methods to some classes.
2019-05-28 13:57:42 +08:00
protolambda
5e28adf556
bugfix: don't forget about var-length bytes getting a length mixin 2019-05-28 00:51:27 +02:00
protolambda
9e61cc2ed3
bugfix: typing edge-case: python bool is subclass of int. 2019-05-28 00:45:13 +02:00
protolambda
0e9a047b1d
Merge branch 'dev' into ssz-impl-rework 2019-05-28 00:42:35 +02:00
protolambda
d023d2d20f
lots of bugfixes 2019-05-27 23:40:05 +02:00
protolambda
c68944bd53
separate type (direct) from kinds (alias incl) 2019-05-27 22:18:34 +02:00
protolambda
d63b553a2d
efficiency bugfix in bytes encoding, improve typing doc + bugfix 2019-05-27 21:45:47 +02:00
protolambda
f3088884b3
Minor adjustments + getting the beacon spec doc ready 2019-05-27 20:29:53 +02:00
protolambda
d5eab257d0
improve impl, box less used integer types, use uint64 as default 2019-05-27 18:01:46 +02:00
Vitalik Buterin
e14f789779 Presentation edits 2019-05-27 08:07:00 -04:00
Vitalik Buterin
5b6a98b107 Some updates 2019-05-25 14:06:42 -04:00
protolambda
ed4416ba34
update SSZ implementation 2019-05-25 00:05:03 +02:00
Danny Ryan
a2108741e8
fix tests with new starT_epoch and end_epoch in Crosslink 2019-05-19 15:47:59 -06:00
protolambda
08faa86d70
POC ssz types spec build + update spec defs, typing still needs work 2019-05-12 23:56:53 +02:00
protolambda
761c9e55fe
SSZ impl. rework started, see issue 1064 2019-05-12 23:16:17 +02:00
protolambda
bbaa1417a8
remove incorrect unnecessary offset 2019-05-02 09:16:01 +02:00
protolambda
524d7b09ba
implement SOS serialization in minimal_ssz.py 2019-05-02 00:34:17 +02:00
protolambda
3a5243cc89
apply PR suggestions from djrtwo 2019-04-19 12:09:30 +10:00
protolambda
972168d695 Make type-inference stable on empty lists/vectors 2019-04-19 12:06:00 +10:00
Diederik Loerakker
d8a4a48ed8 SSZ impl fixes (#960)
* fix serialization mixup of array types, fix variable size vector serialization, document, structure and de-deduplicate code
* more cleanup + minor fixes in earlier improvements
* Make type-inference stable on empty lists/vectors
* Add get_zero_value
2019-04-18 22:54:17 +10:00
protolambda
3f61780260
Merge branch 'dev' into proto-merge-test-gen 2019-04-10 22:34:42 +10:00
protolambda
9e010da118
rename pyspec pkg to eth2spec 2019-04-03 14:18:17 +11:00