Portability | Excellent |
---|---|
Stability | Experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | Safe-Inferred |
- 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 = PointSource
ECC Public Point
ECDSA Public Key.
type PrivateNumber = IntegerSource
ECC Private Number
data PrivateKey Source
ECDSA Private Key.
ECDSA Key Pair.
toPublicKey :: KeyPair -> PublicKeySource
Public key of a ECDSA Key pair.
toPrivateKey :: KeyPair -> PrivateKeySource
Private key of a ECDSA Key pair.