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
Represent a ECDSA signature namely R and S.
type PublicPoint = Point Source
ECC Public Point
ECDSA Public Key.
type PrivateNumber = Integer Source
ECC Private Number
data PrivateKey Source
ECDSA Private Key.
ECDSA Key Pair.
toPublicKey :: KeyPair -> PublicKey Source
Public key of a ECDSA Key pair.
toPrivateKey :: KeyPair -> PrivateKey Source
Private key of a ECDSA Key pair.