lighthouse-pulse/ssz/src/lib.rs

29 lines
589 B
Rust
Raw Normal View History

2018-08-09 03:56:58 +00:00
/*
* This is a WIP of implementing an alternative
2018-08-09 03:56:58 +00:00
* serialization strategy. It attempts to follow Vitalik's
* "simpleserialize" format here:
* https://github.com/ethereum/beacon_chain/blob/master/beacon_chain/utils/simpleserialize.py
2018-08-09 03:56:58 +00:00
*
* This implementation is not final and would almost certainly
* have issues.
*/
extern crate bytes;
extern crate ethereum_types;
2018-09-11 10:25:49 +00:00
mod encode;
2018-09-11 10:17:54 +00:00
mod decode;
mod impl_encode;
mod impl_decode;
2018-09-11 10:17:54 +00:00
pub use decode::{
Decodable,
2018-09-11 10:25:49 +00:00
DecodeError,
decode_ssz,
2018-09-11 10:25:49 +00:00
};
pub use encode::{
Encodable,
SszStream,
2018-09-11 10:17:54 +00:00
};
2018-08-09 03:56:58 +00:00
pub const LENGTH_BYTES: usize = 3;