Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data VRFPrivateKeyFilePermissionError
- checkVrfFilePermissionsImpl :: forall content (direction :: FileDirection). File content direction -> ExceptT VRFPrivateKeyFilePermissionError IO ()
- handleFileForWritingWithOwnerPermissionImpl :: FilePath -> (Handle -> IO ()) -> IO (Either (FileError e) ())
- writeSecretsImpl :: FilePath -> [Char] -> [Char] -> (a -> ByteString) -> [a] -> IO ()
Documentation
data VRFPrivateKeyFilePermissionError Source #
Instances
checkVrfFilePermissionsImpl :: forall content (direction :: FileDirection). File content direction -> ExceptT VRFPrivateKeyFilePermissionError IO () Source #
Make sure the VRF private key file is readable only by the current process owner the node is running under.
handleFileForWritingWithOwnerPermissionImpl :: FilePath -> (Handle -> IO ()) -> IO (Either (FileError e) ()) Source #
writeSecretsImpl :: FilePath -> [Char] -> [Char] -> (a -> ByteString) -> [a] -> IO () Source #