| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
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.