HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecrypton-1.0.4Haskell2010

Crypto.PubKey.EdDSA

EdDSA signature generation and verification, implemented in Haskell and parameterized with elliptic curve and hash algorithm. Only edwards25519 is supported at the moment.

The module provides "context" and "prehash" variants defined in RFC 8032.

This implementation is most useful when wanting to customize the hash algorithm. See module Crypto.PubKey.Ed25519 for faster Ed25519 with SHA-512.

  • 3 types
  • 1 class
  • 13 values
  • Packagecrypton-1.0.4
  • Exports18
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceEdDSA.hs
newtypenewtype SecretKey curve
#

An EdDSA Secret key

Instances4Eq, Show, NFData, ByteArrayAccess
newtypenewtype PublicKey curve hash
#

An EdDSA public key

Instances4Eq, Show, NFData, ByteArrayAccess
newtypenewtype Signature curve hash
#

An EdDSA signature

Instances4Eq, Show, NFData, ByteArrayAccess

Curves with EdDSA implementation

4 declarations
methodsecretKeySize :: proxy curve -> Int
#

Size of secret keys for this curve (in bytes)

Smart constructors

3 declarations

Methods

8 declarations