The manifest and what a SHA-256 fingerprint shows
What the library's manifest records for each document, what a SHA-256 fingerprint shows about a file, and what it cannot tell.
A manifest is a list of what a collection holds and where each item came from. This library's manifest is the ledger. For every document on the shelf it records the address that was fetched, where a fetch was made, and what the fetch returned; where a reuse statement was read, it records a licence letter and the page the statement was read on; for each document that has one, it also records the size and SHA-256 of what was fetched. The same data is published for programs as /ledger/manifest.json.
What SHA-256 is for
A hash algorithm maps a message of arbitrary length to a fixed-length message digest. SHA-256 is one of the SHA-2 family that NIST specifies in FIPS 180-4, the Secure Hash Standard.123
From the standard
The digests are used to detect whether messages have been changed since the digests were generated.
NIST also describes collision resistance: it is computationally infeasible to find two different inputs that give the same hash value.5
The columns of the ledger
- Shelfmark: the document's permanent place on the shelf, a section code and a number, linked to its catalogue card where one exists, otherwise to its row in the register.
- Document and source: the title, the publisher, any edition words found in the stored copy of the document, and the address that was fetched, where a fetch was made.
- Licence: a letter with a link to the page where a reuse statement was read, or the words Licence basis not read. A letter is shown only where the statement was found in the stored copy of the document itself, or in a stored copy of a web page on the same site as the address fetched for the document. The ledger shows what each letter means on the letter itself.
- Size: the size of what was fetched, marked where it is a web page.
- SHA-256: the fingerprint of what was fetched. Where there is none, the row says what the fetch returned.
Using a fingerprint
Compute the SHA-256 of the file on the drive, with the verifier or any tool that does the same, and compare it with the value in the ledger. The standard says that any change to the message will, with a very high probability, give a different digest. So a match means the file is, with very high probability, the one fetched when the fingerprint was recorded. A mismatch means it differs from that file: a damaged copy, a partial download, or a newer edition issued since the fingerprint was recorded.6
What a fingerprint cannot tell
A match says only that the bytes match the file fetched when the fingerprint was recorded. It says nothing about whether the document is correct, or whether it is still current. A publisher can issue a revised edition at any time, and the old file still matches its old fingerprint. When each document was last checked at its source is on the status page, and the method explains how the library handles corrections.
Sources for this page
Each numbered statement above rests on the quoted words below. The quotes are held in the ledger and checked against a stored copy of the source.
A hash algorithm is used to map a message of arbitrary length to a fixed-length message digest.
csrc.nist.gov. At the sourceSHA-2 family of hash algorithms: SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256
csrc.nist.gov. At the sourceFIPS 180-4 specifies seven hash algorithms:
csrc.nist.gov. At the sourceThe digests are used to detect whether messages have been changed since the digests were generated.
Secure Hash Standard (SHS), National Institute of Standards and Technology, page 3. At the sourceCollision resistance : It is computationally infeasible to find two different inputs to the hash function that have the same hash value.
csrc.nist.gov. At the sourceany change to the message will, with a very high probability, result in a different message digest.
Secure Hash Standard (SHS), National Institute of Standards and Technology, page 8. At the source