| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
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.
The private key bytes are stored in the 64-byte wire form required by the
peer-ids spec: seed || public key.