Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Use one blake2 implementation #12260

@nazar-pc

Description

@nazar-pc

I noticed that Substrate uses both blake2 and blake2-rfc crates directly.

If there a specific reason for doing so or can we unify usage to one of them (presumably blake2 as it seems to be more common in general and is shared by indirect dependencies like snow) instead and remove extra dependency?

NOTE: blake2-rfc is also used in parity-db, so to remove it from dependency tree updating parity-db will be necessary as well.

UPD: blake2 doesn't support keyed hashing, so maybe blake2-rfc is the better option for now 🤷‍♂️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions