License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | Experimental |
Portability | Excellent |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
- 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
data Signature
Represent a ECDSA signature namely R and S.
type PublicPoint = Point
ECC Public Point
data PublicKey
ECDSA Public Key.
type PrivateNumber = Integer
ECC Private Number
data PrivateKey
ECDSA Private Key.
data KeyPair
ECDSA Key Pair.
toPublicKey :: KeyPair -> PublicKey
Public key of a ECDSA Key pair.
toPrivateKey :: KeyPair -> PrivateKey
Private key of a ECDSA Key pair.