sdiehl / pairing Goto Github PK
View Code? Open in Web Editor NEWOptimised bilinear pairings over elliptic curves
License: MIT License
Optimised bilinear pairings over elliptic curves
License: MIT License
Hello, how viable is this package and its dependencies within this organization? I'm seeing test failures in galois-field
, elliptic-curve
and pairings
, using GHC 8.10.7 and the 22.05 version of nixpkgs (which is a cut of Hackage from roughly this past May).
These are the versions I'm using:
galois-field
: 9fdd43061453bc54fb683636d03c7c34d643e397
(1.0.3)elliptic-curve
: 445e196a550e36e0f25bd4d9d6a38676b4cf2be8
(HEAD)pairings
: 9e3fd026fb43fd64917a3b267d0d8d351eba77cc
(HEAD)Hi, unfortunately the hackage version 1.1.0 has an upper bound for protolude < 0.3. Could you please push current to hackage?
Thanks
Sumit
The Bits removal is breaking 1.0.0 which is the current hackage version.
Ta!
pairing
fails to build via cabal new-build
with the following error:
src/Pairing/Fr.hs:28:10: error:
• Overlapping instances for Ord Fr
arising from a use of ‘ghc-prim-0.5.3:GHC.Classes.$dm<’
Matching instances:
instance Ord (PrimeField p) -- Defined in ‘PrimeField’
instance Ord Fr -- Defined at src/Pairing/Fr.hs:28:10
• In the expression: ghc-prim-0.5.3:GHC.Classes.$dm< @(Fr)
In an equation for ‘<’: (<) = ghc-prim-0.5.3:GHC.Classes.$dm< @(Fr)
In the instance declaration for ‘Ord Fr’
|
28 | instance Ord Fr where
| ^^^^^^
src/Pairing/Fr.hs:28:10: error:
• Overlapping instances for Ord Fr
arising from a use of ‘ghc-prim-0.5.3:GHC.Classes.$dm<=’
Matching instances:
instance Ord (PrimeField p) -- Defined in ‘PrimeField’
instance Ord Fr -- Defined at src/Pairing/Fr.hs:28:10
• In the expression: ghc-prim-0.5.3:GHC.Classes.$dm<= @(Fr)
In an equation for ‘<=’:
(<=) = ghc-prim-0.5.3:GHC.Classes.$dm<= @(Fr)
In the instance declaration for ‘Ord Fr’
|
28 | instance Ord Fr where
| ^^^^^^
src/Pairing/Fr.hs:28:10: error:
• Overlapping instances for Ord Fr
arising from a use of ‘ghc-prim-0.5.3:GHC.Classes.$dm>’
Matching instances:
instance Ord (PrimeField p) -- Defined in ‘PrimeField’
instance Ord Fr -- Defined at src/Pairing/Fr.hs:28:10
• In the expression: ghc-prim-0.5.3:GHC.Classes.$dm> @(Fr)
In an equation for ‘>’: (>) = ghc-prim-0.5.3:GHC.Classes.$dm> @(Fr)
In the instance declaration for ‘Ord Fr’
|
28 | instance Ord Fr where
| ^^^^^^
src/Pairing/Fr.hs:28:10: error:
• Overlapping instances for Ord Fr
arising from a use of ‘ghc-prim-0.5.3:GHC.Classes.$dm>=’
Matching instances:
instance Ord (PrimeField p) -- Defined in ‘PrimeField’
instance Ord Fr -- Defined at src/Pairing/Fr.hs:28:10
• In the expression: ghc-prim-0.5.3:GHC.Classes.$dm>= @(Fr)
In an equation for ‘>=’:
(>=) = ghc-prim-0.5.3:GHC.Classes.$dm>= @(Fr)
In the instance declaration for ‘Ord Fr’
|
28 | instance Ord Fr where
| ^^^^^^
src/Pairing/Fr.hs:28:10: error:
• Overlapping instances for Ord Fr
arising from a use of ‘ghc-prim-0.5.3:GHC.Classes.$dmmax’
Matching instances:
instance Ord (PrimeField p) -- Defined in ‘PrimeField’
instance Ord Fr -- Defined at src/Pairing/Fr.hs:28:10
• In the expression: ghc-prim-0.5.3:GHC.Classes.$dmmax @(Fr)
In an equation for ‘max’:
max = ghc-prim-0.5.3:GHC.Classes.$dmmax @(Fr)
In the instance declaration for ‘Ord Fr’
|
28 | instance Ord Fr where
| ^^^^^^
src/Pairing/Fr.hs:28:10: error:
• Overlapping instances for Ord Fr
arising from a use of ‘ghc-prim-0.5.3:GHC.Classes.$dmmin’
Matching instances:
instance Ord (PrimeField p) -- Defined in ‘PrimeField’
instance Ord Fr -- Defined at src/Pairing/Fr.hs:28:10
• In the expression: ghc-prim-0.5.3:GHC.Classes.$dmmin @(Fr)
In an equation for ‘min’:
min = ghc-prim-0.5.3:GHC.Classes.$dmmin @(Fr)
In the instance declaration for ‘Ord Fr’
|
28 | instance Ord Fr where
| ^^^^^^
The package doesn't build on GHC 9.6+. I think this is mainly due to galois-field and elliptic-curve dependencies and I wasn't sure how to fix them.
I am looking at adding in mcl-wasm specific serialisation support. Was going to add it to master but seems like there has been plenty of work on galois-field-integration branch. If you are looking to merge this into master, I'll make my changes based on the galois-field-integration branch. I'm in no rush, so happy to track a development branch and reduce my merge effort. What's the preference?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.