ssz

Opinionated 0-alloc SSZ codec for Go

BSD-3-CLAUSE License

Stars
35
ssz - やまいも (v0.2.0) Latest Release

Published by karalabe 3 months ago

The v0.2.0 is the second tagged release of the ssz package. This is an unstable release:

  • The API might change. Pin versions and be prepared to update your code on a version bump.
  • The code could crash. Use it in proof-of-concepts, and do not use it in production systems.
  • There might be bugs. Serialisation and even generated code might be bad. Cross validate.
  • Could be abandoned. Project is a work in progress. Only invest time you're ready to lose.

Since everything's mostly new, please see the project readme as the primary source of information.


Compared to the v0.1.0 release, this one:

  • Adds support for merkleization / tree root calculation.
    • Can be done sequentially with asymptotic 0-allocs.
    • Can be done concurrently with O(threads) allocs.
  • Requires passing in the size limits to DefineXYZOffset.
    • Needed due to encoding/hashing data layout dissonance.
ssz - コールラビ (v0.1.0)

Published by karalabe 4 months ago

The v0.1.0 is the first tagged release of the ssz package. This is an unstable release:

  • The API might change. Pin versions and be prepared to update your code on a version bump.
  • The code could crash. Use it in proof-of-concepts, and do not use it in production systems.
  • There might be bugs. Serialisation and even generated code might be bad. Cross validate.
  • Could be abandoned. Project is a work in progress. Only invest time you're ready to lose.

Since everything's new, instead of a change-log, please see the project readme.