From 0aebedadd392e495ffc8f7c2fa74d712f16c2d7d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 4 May 2017 14:02:37 -0400 Subject: include gpg public key export in GpgSigned This makes debug-me not rely on the gpg keyservers at all. Before, it was only working when the user had the developer's public key already. I thought that --verify would download from --keyserver, but seems not. This is a protocol breaking change! Luckily done before any release, so ok. ProtocolBuffers renumbered. This commit was sponsored by Denis Dzyubenko on Patreon. --- Hash.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Hash.hs') diff --git a/Hash.hs b/Hash.hs index bf8e166..6fb5614 100644 --- a/Hash.hs +++ b/Hash.hs @@ -68,8 +68,12 @@ instance Hashable PublicKey where instance Hashable GpgSig where hash (GpgSig v) = hash $ Tagged "GpgSig" v +instance Hashable GpgKeyExport where + hash (GpgKeyExport v) = hash $ Tagged "GpgKeyExport" v + instance Hashable a => Hashable (PerhapsSigned a) where - hash (GpgSigned a sig) = hash $ Tagged "GpgSigned" [hash a, hash sig] + hash (GpgSigned a sig export) = hash $ + Tagged "GpgSigned" [hash a, hash sig, hash export] hash (UnSigned a) = hash $ Tagged "UnSigned" a instance Hashable ElapsedTime where -- cgit v1.2.3