about summary refs log tree commit diff
path: root/tests/fetchurl.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-02-04T16·59+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-02-04T16·59+0100
commitf3a5930488e4a25de33d9aacc2e14ae614614b5e (patch)
tree2001e1e3a2de740642b112ac6385ad3b09dc28ab /tests/fetchurl.nix
parente0def5bc4b41ad09ce3f188bf522814ef3389e1f (diff)
Sign a subset of the .narinfo
We only need to sign the store path, NAR hash and references (the
"fingerprint"). Everything else is irrelevant to security. For
instance, the compression algorithm or the hash of the compressed NAR
don't matter as long as the contents of the uncompressed NAR are
correct.

(Maybe we should include derivers in the fingerprint, but they're
broken and nobody cares about them. Also, it might be nice in the
future if .narinfos contained signatures from multiple independent
signers. But that's impossible if the deriver is included in the
fingerprint, since everybody will tend to have a different deriver for
the same store path.)

Also renamed the "Signature" field to "Sig" since the format changed
in an incompatible way.
Diffstat (limited to 'tests/fetchurl.nix')
0 files changed, 0 insertions, 0 deletions