Skip to content

たけのこ (v0.3.0)

Pre-release
Pre-release
Compare
Choose a tag to compare
@karalabe karalabe released this 18 Sep 12:13
559052c

The v0.3.0 is the third 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.2.0 release, this one:

  • Adds support for monolithic types (fork specific encoding/decoding/hashing).
    • Types can be extended with optional fields that are only present in certain forks.
    • Struct fields can be tagged with forks that the generator picks up on.
  • Fixes decoding zero-length dynamic arrays into nil fields to init them empty vs leaving nil.
  • Adds an ssz.Sizer argument SizeSSZ, requires passing it to all SizeXYZ methods.
    • Needed to be able to pass fork contexts when working with monolithic types.