Copyright | (c) Marcel Fourné 20[19..] |
---|---|
License | BSD3 |
Maintainer | Marcel Fourné (haskell@marcelfourne.de) |
Stability | stable |
Portability | Good |
Safe Haskell | Safe |
Language | Haskell2010 |
original implementation of this API is by Austin Seipp and can be found under: https://hackage.haskell.org/package/ed25519
Synopsis
- newtype PublicKey = PublicKey {}
- newtype SecretKey = SecretKey {}
- createKeypair :: IO (PublicKey, SecretKey)
- createKeypairFromSeed_ :: ByteString -> Maybe (PublicKey, SecretKey)
- createKeypairFromSeed :: ByteString -> (PublicKey, SecretKey)
- toPublicKey :: SecretKey -> PublicKey
- sign :: SecretKey -> ByteString -> ByteString
- verify :: PublicKey -> ByteString -> Bool
- newtype Signature = Signature {}
- dsign :: SecretKey -> ByteString -> Signature
- dverify :: PublicKey -> ByteString -> Signature -> Bool
- sign' :: SecretKey -> ByteString -> Signature
- verify' :: PublicKey -> ByteString -> Signature -> Bool
Documentation
Instances
Eq PublicKey Source # | |
Ord PublicKey Source # | |
Defined in Crypto.Sign.Ed25519 | |
Show PublicKey Source # | |
Generic PublicKey Source # | |
type Rep PublicKey Source # | |
Defined in Crypto.Sign.Ed25519 type Rep PublicKey = D1 (MetaData "PublicKey" "Crypto.Sign.Ed25519" "eccrypto-ed25519-bindings-0.1.0.0-EuKQCcZ2fkzJS59eBsMMeT" True) (C1 (MetaCons "PublicKey" PrefixI True) (S1 (MetaSel (Just "unPublicKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString))) |
Instances
Eq SecretKey Source # | |
Ord SecretKey Source # | |
Defined in Crypto.Sign.Ed25519 | |
Show SecretKey Source # | |
Generic SecretKey Source # | |
type Rep SecretKey Source # | |
Defined in Crypto.Sign.Ed25519 type Rep SecretKey = D1 (MetaData "SecretKey" "Crypto.Sign.Ed25519" "eccrypto-ed25519-bindings-0.1.0.0-EuKQCcZ2fkzJS59eBsMMeT" True) (C1 (MetaCons "SecretKey" PrefixI True) (S1 (MetaSel (Just "unSecretKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString))) |
createKeypairFromSeed :: ByteString -> (PublicKey, SecretKey) Source #
toPublicKey :: SecretKey -> PublicKey Source #
sign :: SecretKey -> ByteString -> ByteString Source #