ed25519-donna-0.1.1: Haskell bindings to ed25519-donna (Elliptical Curve Signature Scheme)

Safe HaskellNone
LanguageHaskell2010

Crypto.Ed25519.Exceptions

Contents

Synopsis

Documentation

data PrivateKey Source

The type of a Ed25519 private key.

data PublicKey Source

The type of a Ed25519 public key.

Instances

newtype Signature Source

Constructors

Sig ByteString 

Instances

generatePrivate :: CryptoRandomGen g => g -> (PrivateKey, g) Source

Randomly generate an Ed25519 private key.

generatePublic :: PrivateKey -> PublicKey Source

Randomly generate a curve25519 public key.

Import/Export interface