Skip to content

Better encoding for empty hashes? #4241

@ebuchman

Description

@ebuchman

Hashes in Tendermint are currently just slices, not fixed length arrays, so empty hashes (which occur at least in the first block) are encoded differently from others. While it's not hard to handle this currently in Go, it makes for a lot of work in Rust: cometbft/tendermint-rs#66.

Should we consider using fixed-length arrays for hashes and let the "empty hash" be instead the un-initialized array, ie. all 0s?

Metadata

Metadata

Assignees

No one assigned

    Labels

    T:breakingType: Breaking ChangeT:encodingType: Amino, ProtoBuf

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions