An Ed25519 Secret key
Modulecrypton-1.0.4Haskell2010
Crypto.PubKey.Ed25519
Ed25519 support
- 3 types
- 11 values
- Packagecrypton-1.0.4
- Exports14
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceEd25519.hs
An Ed25519 public key
Instances4Eq, Show, NFData, ByteArrayAccess
An Ed25519 signature
Instances4Eq, Show, NFData, ByteArrayAccess
Size constants
3 declarationsA public key is 32 bytes
A secret key is 32 bytes
A signature is 64 bytes
Smart constructors
3 declarationsTry to build a signature from a bytearray
Try to build a public key from a bytearray
Try to build a secret key from a bytearray
Methods
5 declarationsCreate a public key from a secret key
Sign a message using the key pair. The public key parameter is ignored and its public key is generated from the secret key parameter to prevent Double Public Key Signing Function Oracle Attack.
Sign a message using the key pair. This is old sign, which is vulnerable to private key compromise if the given public key does not correspond to the secret key. This function is provided for performance critical applications. To use it safely, applications must verify or derive the public key.
Verify a message
Generate a secret key