Safe Haskell | None |
---|
- data Signature = Signature {}
- data PublicKey = PublicKey {}
- data PrivateKey = PrivateKey {}
- sign :: CryptoRandomGen g => PrivateKey -> ByteString -> g -> Either GenError (Signature, g)
- publicFromPrivate :: PrivateKey -> PublicKey
- publicToBytes :: PublicKey -> ByteString
- signatureEncodeDER :: Signature -> ByteString
Documentation
data Signature
Represent a ECDSA signature namely R and S.
data PublicKey
ECDSA Public Key.
data PrivateKey
ECDSA Private Key.
sign :: CryptoRandomGen g => PrivateKey -> ByteString -> g -> Either GenError (Signature, g)Source