plutus-core-1.72.0.0: Language library for Plutus Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

Evaluation.Builtins.BLS12_381

Description

Property tests for the BLS12-381 builtins

Synopsis

Documentation

zActionProperties ∷ ∀ g. TestableAbelianGroup g ⇒ [PropertySpec (Gen Check)] Source #

The integers act on the group.

multiScalarMulProperties ∷ ∀ g. TestableAbelianGroup g ⇒ [PropertySpec (Gen Check)] Source #

Multi-scalar multiplication.

compressHashProperties ∷ ∀ g. HashAndCompress g ⇒ [PropertySpec (Gen Check)] Source #

Uncompression and hashing.

pairingProperties ∷ [PropertySpec (Gen Check)] Source #

Pairing properties, which don't depend on the group parameter.

groupProperties ∷ ∀ g. HashAndCompress g ⇒ [(TestName, [PropertySpec (Gen Check)])] Source #

The properties of one group, grouped as they appear in the test tree.

test_override_ids ∷ TestTree Source #

Guard against renaming a property and silently losing its test limit.

defaultTests ∷ Int Source #

QuickCheck's default number of cases for a property.

overriddenTests ∷ [(String, Int)] Source #

Properties that run fewer cases than the default: hashing is quadratic in the number of inputs and random uncompression is slow.

generate_bls12_381_properties ∷ OutputFormat → CheckMode → PropertyFilter → FilePath → Int → QCGen → IO [PropertyReport] Source #

Generate cases for both groups and the pairing properties. Group-valued outputs are compressed so inputs and results support both textual and Flat formats.

bls12_381_property_names ∷ [PropertyId] Source #

Qualified property names, without sampling inputs or evaluating checks.