File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
hnix-store-core/src/System/Nix Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 1- {-# LANGUAGE CPP #-}
21{-|
32Description : Nix-relevant interfaces to NaCl signatures.
43-}
@@ -16,24 +15,15 @@ import GHC.Generics (Generic)
1615import qualified Data.ByteString
1716import qualified Data.Coerce
1817
19- -- 2021-05-30: NOTE: Please, clean-up these overloads in ~2022
20- #if MIN_VERSION_saltine(0,2,0)
2118import qualified Crypto.Saltine.Internal.Sign as NaClSizes
22- #else
23- import qualified Crypto.Saltine.Internal.ByteSizes as NaClSizes
24- #endif
2519
2620-- | A NaCl signature.
2721newtype Signature = Signature ByteString
2822 deriving (Eq , Generic , Ord , Show )
2923
3024instance IsEncoding Signature where
3125 decode s
32- #if MIN_VERSION_saltine(0,2,0)
3326 | Data.ByteString. length s == NaClSizes. sign_bytes = Just $ Signature s
34- #else
35- | Data.ByteString. length s == NaClSizes. sign = Just $ Signature s
36- #endif
3727 | otherwise = Nothing
3828 encode = Data.Coerce. coerce
3929
You can’t perform that action at this time.
0 commit comments