Skip to content

mananuf/ssz-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Serialize Implementation

An educational implementation of the Simple Serialize (SSZ) specification, focusing on the core principles used in the Ethereum Lean Consensus.

Features

  • Little-Endian Serialization: Byte-perfect encoding for basic types.
  • Offset Management: Proper handling of variable-length lists within containers.
  • Merkleization Engine:
    • Pre-computed Zero-Hash Ladder for performance.
    • Recursive HashLayers for calculating the Merkle Root.
    • Mix-In-Length logic for list integrity.
  • Packing: Efficient 32-byte chunking of serialized data.

Implementation Progress

  • Basic Types (uint32, uint64)
  • Fixed-size Containers
  • Variable-size Lists
  • Merkle Tree reduction
  • Root generation for nested structs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages