Copyright | (c) Marcel Fourné 20[14..] |
---|---|
License | BSD3 |
Maintainer | Marcel Fourné (haskell@marcelfourne.de) |
Stability | alpha |
Portability | Bad |
Safe Haskell | Safe |
Language | Haskell98 |
safe re-exports
Synopsis
- data Point
- type Message = ByteString
- type PubKey = ByteString
- data SecKey
- type Signature = ByteString
- type SignedMessage = ByteString
- data SigOK = SigOK
- type VerifyResult = Either String SigOK
- getFPrime32 :: ByteString -> Either String FPrime
Documentation
twisted Edwards curve point, extended point format (x,y,z,t), neutral element (0,1,1,0), c=1, a=-1 https://hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html, after "Twisted Edwards curves revisited" eprint 2008/522
type Message = ByteString Source #
just a newtype for the message
type PubKey = ByteString Source #
just a newtype for the public key (string of 32 bytes, b=256 bit)
type Signature = ByteString Source #
just a newtype for the signature (string of 2*32 bytes, b=256 bit)
type SignedMessage = ByteString Source #
just a newtype for the signature with appended message
clear signal that everything is ok
type VerifyResult = Either String SigOK Source #
Result of verifying a signature should only yield if it's good or bad, not more, but contains an error string if underlying primitives failed
getFPrime32 :: ByteString -> Either String FPrime Source #
converts 32 little endian bytes into one FPrime