Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- keyGen ∷ MonadRandom m ⇒ m (VerificationKey, SigningKey)
- deterministicKeyGen ∷ ByteString → (VerificationKey, SigningKey)
Documentation
keyGen ∷ MonadRandom m ⇒ m (VerificationKey, SigningKey) Source #
Generate a key pair. It's recommended to run it with runSecureRandom
from Cardano.Crypto.Random because the OpenSSL generator is probably safer
than the default IO generator.
deterministicKeyGen ∷ ByteString → (VerificationKey, SigningKey) Source #
Create key pair deterministically from 32 bytes.