Skip to content

Are 512-bit hashes necessary? #6

Description

@snej

Bamboo uses 512-bit (64-byte) Blake2b hashes. My gut feeling* is that this is bigger than necessary.

Using 256-bit hashes would reduce an encoded entry by about 75 bytes on average (considering ~⅓ of entries have lipmaa_links.) That's a 25-30% reduction. (Currently an encoded entry can be from 232 to 322 bytes.)

This seems significant, since from what I've seen with Scuttlebutt, there are going to be a lot of entries stored locally, and it's common for the entry to be larger than its payload — for instance, all entries with seq > 1 are longer than any allowed Twitter message.

What do you think?

* I am not a cryptographer! But I've been working with digests & crypto for over a decade...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions