Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- newtype PublicKey = PublicKey {}
- newtype SecretKey = SecretKey {}
- newtype Signature = Signature {}
- newKeyPair :: IO (PublicKey, SecretKey)
- sign :: SecretKey -> ByteString -> IO ByteString
- signature :: SecretKey -> ByteString -> IO Signature
- signatureLength :: IO Word
- verify :: PublicKey -> ByteString -> IO Bool
- verifyWith :: PublicKey -> Signature -> ByteString -> IO Bool
Documentation
sign :: SecretKey -> ByteString -> IO ByteString Source #
signatureLength :: IO Word Source #
verifyWith :: PublicKey -> Signature -> ByteString -> IO Bool Source #