License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | Experimental |
Portability | Excellent |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Crypto.Types.PubKey.ECDSA
Description
- data Signature = Signature {}
- type PublicPoint = Point
- data PublicKey = PublicKey {}
- type PrivateNumber = Integer
- data PrivateKey = PrivateKey {}
- data KeyPair = KeyPair Curve PublicPoint PrivateNumber
- toPublicKey :: KeyPair -> PublicKey
- toPrivateKey :: KeyPair -> PrivateKey
Documentation
Represent a ECDSA signature namely R and S.
type PublicPoint = Point Source
ECC Public Point
ECDSA Public Key.
Constructors
PublicKey | |
Fields
|
type PrivateNumber = Integer Source
ECC Private Number
ECDSA Key Pair.
Constructors
KeyPair Curve PublicPoint PrivateNumber |
toPublicKey :: KeyPair -> PublicKey Source
Public key of a ECDSA Key pair.
toPrivateKey :: KeyPair -> PrivateKey Source
Private key of a ECDSA Key pair.