Danny Ryan
7c0cc7f801
fix #1169 bytes type error
2019-06-13 14:32:45 -06:00
protolambda
f4814862fe
fix typing check, add zero-hash cache to hash function
2019-06-11 19:23:45 +02:00
protolambda
22f624e12e
re-order type check for more speed
2019-06-11 18:08:27 +02:00
protolambda
b9abc5f2cf
List[uint64] is not like a type but just for annotation, same for other Generics with __args__, Vector/BytesN work, because their metaclasses produce non-parametrized types, so don't check vector values when type contains args
2019-06-05 18:53:34 +02:00
protolambda
1cc7c7309d
change to issubclass, hope parametrized external type is ok
2019-06-05 18:28:09 +02:00
protolambda
a7554d503c
fix for typing check of vector elements with non-type element type (annotation)
2019-06-05 18:02:39 +02:00
Carl Beekhuizen
d761b6f041
Implements new SSZ types
2019-06-05 15:29:26 +02:00
protolambda
578328bb54
call comments: remove partials from ssz rework PR, review that seperately
2019-06-04 18:11:50 +02:00
protolambda
59137fd5a6
fix get_zero_value exception raise + fix up type checks
2019-06-04 15:40:15 +02:00
Diederik Loerakker
8631cad251
Apply suggestions from code review
...
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
2019-06-04 15:22:34 +02:00
Hsiao-Wei Wang
6d55ba9c8c
minor refactor
2019-06-04 18:59:52 +08:00
Hsiao-Wei Wang
a7ee6f108e
Refactor
2019-06-04 17:42:21 +08:00
Hsiao-Wei Wang
a5576059f8
Fix `ssz_partials.py` linter errors
2019-06-03 17:19:22 +08:00
protolambda
fae1e9285d
resolve some new lint issues detected by newer version, and a few looked over ones
2019-06-01 02:40:29 +02:00
protolambda
f3a517b6f6
fix minor lint problems
2019-06-01 02:32:11 +02:00
protolambda
7df788c7d5
resolve linting problems, except ssz-partials
2019-06-01 02:22:14 +02:00
protolambda
3cb43fcc27
fix ssz infer type decorator, one None argument too many
2019-06-01 01:49:52 +02:00
Vitalik Buterin
3630b2ea9f
Merge branch 'ssz-impl-rework' of github.com:ethereum/eth2.0-specs into ssz-impl-rework
2019-05-30 09:42:47 -04:00
Vitalik Buterin
8fae0f8c78
Added support for SSZ partials
2019-05-30 09:42:42 -04:00
Hsiao-Wei Wang
ebdf74c6b8
kick the CI
2019-05-30 15:57:39 +08: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
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
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