mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Ignore narSize and references when importing signatures
This way systems sharing signatures no longer need to exchange (or hold on to) the size or references. They should not matter: the signature is based on the fingerprint which contains the narSize and references. Mathematically speaking there could be collisions, but that would essentially mean sha256/ed25519 is broken, in which case we're in trouble anyway?
This commit is contained in:
parent
c3e9e3d0c3
commit
c62e785fb1
1 changed files with 1 additions and 3 deletions
|
@ -63,9 +63,7 @@ struct CmdCopySigs : StorePathsCommand
|
|||
|
||||
/* Don't import signatures that don't match this
|
||||
binary. */
|
||||
if (info->narHash != info2->narHash ||
|
||||
info->narSize != info2->narSize ||
|
||||
info->references != info2->references)
|
||||
if (info->narHash != info2->narHash)
|
||||
continue;
|
||||
|
||||
for (auto & sig : info2->sigs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue