aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/src
diff options
context:
space:
mode:
authorValentin Gagarin <valentin.gagarin@tweag.io>2022-07-13 11:42:16 +0100
committerValentin Gagarin <valentin.gagarin@tweag.io>2022-08-04 12:37:48 +0200
commit29c062537d37fc10997767edd3edb6af41f1fb00 (patch)
tree04bb0ae91acddfc9c657cd0ecda28184f845b085 /doc/manual/src
parent9cabba1fc35c4989b0e280c12a845adf0e300dab (diff)
hashes: truncate -> reduce, mention SHA-256
the longer SHA-256 hashes are not truncated, but in fact processed. Co-authored-by: Thomas <twatson52@mac.com>
Diffstat (limited to 'doc/manual/src')
-rw-r--r--doc/manual/src/architecture/store/path.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/manual/src/architecture/store/path.md b/doc/manual/src/architecture/store/path.md
index 9f47b877f..64bc4a522 100644
--- a/doc/manual/src/architecture/store/path.md
+++ b/doc/manual/src/architecture/store/path.md
@@ -62,12 +62,13 @@ Store objects are therefore said to be either [input-addressed](#input-addressin
::: {.note}
**Historical note**: The 20 byte restriction is because originally digests were [SHA-1][sha-1] hashes.
-This is no longer true, but longer hashes and other information are still truncated to 20 bytes for compatibility.
+Nix now uses [SHA-256][sha-256], and longer hashes are still reduced to 20 bytes for compatibility.
:::
[digest]: https://en.m.wiktionary.org/wiki/digest#Noun
[hash]: https://en.m.wikipedia.org/wiki/Cryptographic_hash_function
[sha-1]: https://en.m.wikipedia.org/wiki/SHA-1
+[sha-256]: https://en.m.wikipedia.org/wiki/SHA-256
### Reference scanning