cardano-crypto-class-2.5.1.0: Type classes abstracting over cryptography primitives for Cardano
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Crypto.EllipticCurve

Documentation

testBLSCurve ∷ ∀ curve. BLS curve ⇒ String → Proxy curve → Spec Source #

testAssoc ∷ (Show a, Eq a) ⇒ (a → a → a) → a → a → a → Property Source #

testCommut ∷ (Show a, Eq a) ⇒ (a → a → a) → a → a → Property Source #

prop_repeatedAddition ∷ ∀ curve. BLS curve ⇒ Int → Point curve → Property Source #

testAddNegYieldsInf ∷ ∀ curve. BLS curve ⇒ Point curve → Bool Source #

testRoundTripEither ∷ ∀ p a err. (Show p, Show err, Eq p, Eq err) ⇒ (p → a) → (a → Either err p) → p → Property Source #

newtype BigInteger Source #

Constructors

BigInteger Integer 

Instances

Instances details
Arbitrary BigInteger Source # 
Instance details

Defined in Test.Crypto.EllipticCurve

Show BigInteger Source # 
Instance details

Defined in Test.Crypto.EllipticCurve

Eq BigInteger Source # 
Instance details

Defined in Test.Crypto.EllipticCurve

Methods

(==) ∷ BigInteger → BigInteger → Bool #

(/=) ∷ BigInteger → BigInteger → Bool #

Orphan instances

Arbitrary PT Source # 
Instance details

Methods

arbitrary ∷ Gen PT Source #

shrink ∷ PT → [PT] Source #

Arbitrary Scalar Source # 
Instance details

Show PT Source # 
Instance details

Methods

showsPrec ∷ Int → PT → ShowS #

show ∷ PT → String #

showList ∷ [PT] → ShowS #

BLS curve ⇒ Arbitrary (Affine curve) Source # 
Instance details

Methods

arbitrary ∷ Gen (Affine curve) Source #

shrink ∷ Affine curve → [Affine curve] Source #

BLS curve ⇒ Arbitrary (Point curve) Source # 
Instance details

Methods

arbitrary ∷ Gen (Point curve) Source #

shrink ∷ Point curve → [Point curve] Source #

BLS curve ⇒ Show (Affine curve) Source # 
Instance details

Methods

showsPrec ∷ Int → Affine curve → ShowS #

show ∷ Affine curve → String #

showList ∷ [Affine curve] → ShowS #