Skip to main content
https://raw.githubusercontent.com/protolambda/remerkleable/master/docs/_static/logo.png

remerkleable

https://img.shields.io/pypi/l/remerkleable.svg https://img.shields.io/pypi/pyversions/remerkleable.svg https://img.shields.io/pypi/status/remerkleable.svg https://img.shields.io/pypi/implementation/remerkleable.svg https://github.com/protolambda/remerkleable/workflows/Remerkleable%20Python%20CI/badge.svg

Re-merkle-able: Typed mutable SSZ views over cached and immutable binary Merkle trees.

Features

  • Types:
    • custom byte-vector and byte-list view for Python bytes-like behavior

    • bitfields: bitlist, bitvector

    • list, container, vector

    • union

    • 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.

    • Calculate byte lengths:
      • Type min/max byte length

      • Byte length for fixed-length types

      • Output byte length for a value, without serializing

    • Navigation: construct paths from types, and convert to generalized indices.

    • History: traverse a sequence of nodes, and get the changelog for a given subtree location.

Also see

Contact

Author: @protolambda

License

MIT, see LICENSE file.

Metadata

Release files for remerkleable 0.1.28

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for remerkleable 0.1.28
File Size Uploaded
remerkleable-0.1.28.tar.gz 45.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for remerkleable 0.1.28
File Interpreter ABI Platform
remerkleable-0.1.28-py3-none-any.whl Python 3 none any Details

Total release size: 97.1 kB

Release files / remerkleable-0.1.28.tar.gz

Download URL remerkleable-0.1.28.tar.gz
Size 45.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1e19e9a927961b29c4efa210795bfad5d20a28545a6f78f7552b1e4449c24890
BLAKE2b-256 checksum
How to use checksums
c0a35b1206c4281f7337945a8e86ef73f40093c41f3b78291d6f66250fe5aaf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.6

Release files / remerkleable-0.1.28-py3-none-any.whl

Download URL remerkleable-0.1.28-py3-none-any.whl
Size 51.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
133cb1283f1d6fd2a020f47ee3653e93385acf2aa4ddc30f3d00eb9404751bda
BLAKE2b-256 checksum
How to use checksums
27c2c89771e64163950a0016251080523cfbdf1f1d2cae2ad0b8b9c52bc0c846
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.1.28 This release

2 release files

0.1.27

2 release files

0.1.26

2 release files

0.1.25

2 release files

0.1.23

2 release files

0.1.22

2 release files

0.1.21

2 release files

0.1.20

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page