Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using blake2 hash #9

Open
RubenKelevra opened this issue Mar 26, 2023 · 1 comment
Open

Allow using blake2 hash #9

RubenKelevra opened this issue Mar 26, 2023 · 1 comment

Comments

@RubenKelevra
Copy link

Currently, the sha2-256 hash is hardcoded

As the blake2 hash is much faster with enhanced safety comparable to sha3, it would be neat if there's an option to switch to it.

@RubenKelevra RubenKelevra changed the title Use blake2 hash Allow using blake2 hash Mar 26, 2023
@sameer
Copy link
Owner

sameer commented Mar 28, 2023

Hello, unfortunately git-lfs-ipfs must use sha256. This is because LFS itself only supports sha256: https://github.com/git-lfs/git-lfs/blob/main/docs/spec.md

It might be possible to use a different hash but that would require changing the way things are tracked from the file level to the repo level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants