HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulecryptonite-0.30Haskell2010

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.

Contents
  1. Curves with EdDSA implementation
  2. Smart constructors
  3. Methods
Synopsis
  • Packagecryptonite-0.30
  • 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
  • Eq (PublicKey curve hash)Defined in cryptonite-0.30 · Crypto.PubKey.EdDSA
  • Show (PublicKey curve hash)Defined in cryptonite-0.30 · Crypto.PubKey.EdDSA
  • NFData (PublicKey curve hash)Defined in cryptonite-0.30 · Crypto.PubKey.EdDSA
  • ByteArrayAccess (PublicKey curve hash)Defined in cryptonite-0.30 · Crypto.PubKey.EdDSA
newtypenewtype Signature curve hash

An EdDSA signature

Instances4Eq, Show, NFData, ByteArrayAccess
  • Eq (Signature curve hash)Defined in cryptonite-0.30 · Crypto.PubKey.EdDSA
  • Show (Signature curve hash)Defined in cryptonite-0.30 · Crypto.PubKey.EdDSA
  • NFData (Signature curve hash)Defined in cryptonite-0.30 · Crypto.PubKey.EdDSA
  • ByteArrayAccess (Signature curve hash)Defined in cryptonite-0.30 · Crypto.PubKey.EdDSA

Curves with EdDSA implementation

Smart constructors

Methods