Skip to main content

Typed mutable SSZ views over cached and immutable binary merkle trees

Project description


Remerkleable: Typed mutable SSZ views over cached and immutable binary Merkle trees.


  • Types:
    • custom byte-vector view for Python bytes-like behavior
    • bitfields: bitlist, bitvector
    • list, container, vector
    • basic types
  • Functionality:
    • Serialize all types. Into output stream (returning the written count) and as bytes
    • Deserialize all types. From input stream (and scope) and from bytes
    • Hash-tree-root all types
    • Merkle-based data-sharing:
      • every view can be initialized/backed by a binary Merkle tree
      • complex views have backings, and can share data.
      • complex views provide a nice mutable interface, and replace their backing. And this also works for child-views through view-hooks.
      • SSZ-Partials: if a partial proof is loaded as backing, a view can be overlaid, and the partial backing works as long as no excluded branches are accessed.
    • Get serialization info from the bare types: min/max byte length, or just byte length for fixed-length types.

Also see


Author: @protolambda


MIT, see LICENSE file.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for remerkleable, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size remerkleable-0.1.2-py3-none-any.whl (25.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size remerkleable-0.1.2.tar.gz (21.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page