Add container todo stubs

This commit is contained in:
NatoliChris 2018-10-03 15:08:20 +10:00
parent a2ad4bf6d5
commit 03252637cb
No known key found for this signature in database
GPG Key ID: D3EA7DBA19945306
1 changed files with 20 additions and 3 deletions

View File

@ -1,8 +1,6 @@
# [WIP] SimpleSerialize (SSZ) Spec # [WIP] SimpleSerialize (SSZ) Spec
***Work In Progress*** This is the **work in progress** document to describe `simpleserialize`, the
This is the work in progress document to describe `simpleserialize`, the
current selected serialization method for Ethereum 2.0 using the Beacon Chain. current selected serialization method for Ethereum 2.0 using the Beacon Chain.
This document specifies the general information for serializing and This document specifies the general information for serializing and
@ -23,6 +21,7 @@ deserializing objects and data types.
* [Hash97](#hash97) * [Hash97](#hash97)
- [Bytes](#bytes) - [Bytes](#bytes)
- [List/Vectors](#listvectors) - [List/Vectors](#listvectors)
- [Container (TODO)](#container)
+ [Deserialize/Decode](#deserializedecode) + [Deserialize/Decode](#deserializedecode)
- [uint: 8/16/24/32/64/256](#uint-816243264256-1) - [uint: 8/16/24/32/64/256](#uint-816243264256-1)
- [Address](#address-1) - [Address](#address-1)
@ -32,6 +31,7 @@ deserializing objects and data types.
* [Hash97](#hash97-1) * [Hash97](#hash97-1)
- [Bytes](#bytes-1) - [Bytes](#bytes-1)
- [List/Vectors](#listvectors-1) - [List/Vectors](#listvectors-1)
- [Container (TODO)](#container-1)
* [Implementations](#implementations) * [Implementations](#implementations)
## About ## About
@ -199,6 +199,15 @@ serialized_len = (len(serialized_list_string).to_bytes(LENGTH_BYTES, 'big'))
return serialized_len + serialized_list_string return serialized_len + serialized_list_string
``` ```
#### Container
```
########################################
TODO
########################################
```
### Deserialize/Decode ### Deserialize/Decode
The decoding requires knowledge of the type of the item to be decoded. When The decoding requires knowledge of the type of the item to be decoded. When
@ -321,6 +330,14 @@ while item_index < new_index:
return deserialized_list, new_index return deserialized_list, new_index
``` ```
#### Container
```
########################################
TODO
########################################
```
## Implementations ## Implementations
| Language | Implementation | Description | | Language | Implementation | Description |