datacraft-dsc / DEPs

Data Ecosystem Proposals (DEPs) - Open Standards for Decentralised Data Ecosystems
Apache License 2.0
10 stars 2 forks source link

Spec for hashing algorithm #21

Closed shark8me closed 5 years ago

shark8me commented 5 years ago

In DEP-8, add an optional parameter to specify the hashing algorithm. The only acceptable value should be Keccak-256.

mikera commented 5 years ago

Please find if you can an internet / public standard for specification of hashing algorithms that we can adopt, and refer to it in the DEP. No need to reinvent a convention here I think.

shark8me commented 5 years ago

The JWT Spec lists the algorithms allowed. However, I'm not certain Keccak is one of them. The list of algorithms in the NIPS standard are again different

mikera commented 5 years ago

Keccak-256 is the Ethereum standard BTW, that's why I used it in the current implementations.

I'm OK with any 256bit+ hash algorithm with similar cryptographic properties in principle. Broad library support, cryptographic strength, "good enough" performance and consistency with existing standards are the main criteria I think.

mikera commented 5 years ago

Closing since we have now decided to standardise on SHA3-256