The hashes do not match — how do I work out why?
- Separate three possibilities first: (1) you are hashing the wrong thing (the filename instead of the contents); (2) you are hashing with the wrong encoding (UTF-8 vs GBK, trailing newline or not); (3) something rewrote it in transit (newline conversion, compression).
- The reliable habit is hash bytes, never structure: write the artifact to a file first, then hash the file.
- If the algorithm is the same on both sides and they still disagree, compare the lengths. Different lengths almost always means encoding or a newline.
How to verify it yourself
Declare the sha256 as one of your acceptance criteria and hand it to POST /v1/check — it computes the real value and compares.
All questions · nodcheck · Source: https://nodcheck.com/answers/evidence-hash