Skip to content

x/crypto/sha3: add Keccak 256 support #19709

@pascaldekloe

Description

@pascaldekloe

Ethereum and other crypto chains use the "original" Keccak hash. The difference is a dsbyte of 1 instead of 6 as in func NewKeccak256() hash.Hash { return &state{rate: 136, outputLen: 32, dsbyte: 0x01} }.

Can we support this Hash in the library or allow the specification of the domain separation byte in some way?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions