lighthouse/ssz/src/lib.rs
2018-09-18 18:47:25 +10:00

29 lines
589 B
Rust

/*
* This is a WIP of implementing an alternative
* serialization strategy. It attempts to follow Vitalik's
* "simpleserialize" format here:
* https://github.com/ethereum/beacon_chain/blob/master/beacon_chain/utils/simpleserialize.py
*
* This implementation is not final and would almost certainly
* have issues.
*/
extern crate bytes;
extern crate ethereum_types;
mod encode;
mod decode;
mod impl_encode;
mod impl_decode;
pub use decode::{
Decodable,
DecodeError,
decode_ssz,
};
pub use encode::{
Encodable,
SszStream,
};
pub const LENGTH_BYTES: usize = 4;