libp2p-hs-0.1.0.0: Haskell implementation of the libp2p networking stack
Safe HaskellNone
LanguageGHC2021

Network.LibP2P.Crypto.Ed25519

Description

Ed25519 key operations using crypton.

Synopsis

Documentation

generateKeyPair :: IO (Either String KeyPair) Source #

Generate a new random Ed25519 key pair. Returns Left on cryptographic failure (should not occur with proper RNG).

keyPairFromSeed :: ByteString -> Either String KeyPair Source #

Create an Ed25519 key pair from a 32-byte seed.