Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data PrivateKey
- data PublicKey
- newtype Signature = Sig ByteString
- generatePrivate :: CryptoRandomGen g => g -> Either GenError (PrivateKey, g)
- generatePublic :: PrivateKey -> PublicKey
- generateKeyPair :: CryptoRandomGen g => g -> Either GenError (PrivateKey, PublicKey, g)
- sign :: ByteString -> PrivateKey -> PublicKey -> Signature
- valid :: ByteString -> PublicKey -> Signature -> Bool
- importPublic :: ByteString -> Maybe PublicKey
- importPrivate :: ByteString -> Maybe PrivateKey
- exportPublic :: PublicKey -> ByteString
- exportPrivate :: PrivateKey -> ByteString
Documentation
generatePrivate :: CryptoRandomGen g => g -> Either GenError (PrivateKey, g) Source
generateKeyPair :: CryptoRandomGen g => g -> Either GenError (PrivateKey, PublicKey, g) Source
sign :: ByteString -> PrivateKey -> PublicKey -> Signature Source