Skip to content

Commit

Permalink
Reduce public API and expose Integer instead of Scalar
Browse files Browse the repository at this point in the history
(WIP - tests do not pass)
  • Loading branch information
tdammers authored and iquerejeta committed Nov 29, 2022
1 parent ed4e658 commit cab9777
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 241 deletions.
31 changes: 3 additions & 28 deletions cardano-crypto-class/src/Cardano/Crypto/EllipticCurve/BLS12_381.hs
Expand Up @@ -9,9 +9,6 @@ module Cardano.Crypto.EllipticCurve.BLS12_381
, P2
, Curve1
, Curve2
, Scalar
, Fr
, Affine
, BLSTError (..)

-- * Class
Expand All @@ -31,33 +28,11 @@ module Cardano.Crypto.EllipticCurve.BLS12_381
, generator
, isInf

, toXYZ
, toXY

, toAffine
, fromAffine
, affineInG

-- * Scalar / Fr operations
, scalarFromFr
, frFromScalar
, frFromCanonicalScalar
, scalarFromBS
, scalarToBS
, scalarFromNatural
, scalarToNatural
, scalarCanonical

, frAdd
, frMult
, frNeg
, frInverse
, frSqr
, frFromNatural
, frToNatural

-- * Pairings
, pairingCheck

-- * The period of scalars
, scalarPeriod
)
where

Expand Down

0 comments on commit cab9777

Please sign in to comment.