sdiehl / arithmetic-circuits Goto Github PK
View Code? Open in Web Editor NEWArithmetic circuits for zero knowledge proof systems
Home Page: https://www.adjoint.io
License: MIT License
Arithmetic circuits for zero knowledge proof systems
Home Page: https://www.adjoint.io
License: MIT License
on current master
(18e15de)
I get the following error on stack test
pairing > [10 of 11] Compiling Data.Pairing.Hash
pairing >
pairing > /tmp/stack-9ebfe010c6b08242/pairing-1.0.0/src/Data/Pairing/Hash.hs:48:12: error:
pairing > • Could not deduce (Bits (Prime q))
pairing > arising from a use of ‘fromBytes’
pairing > from the context: (MonadRandom m, ECPairing e q r u v w)
pairing > bound by the type signature for:
pairing > swEncBN :: forall e (m :: * -> *) (q :: Nat) (r :: Nat) u v w.
pairing > (MonadRandom m, ECPairing e q r u v w) =>
pairing > ByteString -> m (Maybe (G1 e))
pairing > at src/Data/Pairing/Hash.hs:(44,1)-(45,35)
pairing > • In the expression: fromBytes bs
pairing > In an equation for ‘t’: t = fromBytes bs
pairing > In the second argument of ‘($)’, namely
pairing > ‘do sqrt3 <- hoistMaybe $ sr $ - 3
pairing > let t = fromBytes bs
pairing > s1 = (sqrt3 - 1) / 2
pairing > ....
pairing > guard (b1 + t * t /= 0)
pairing > if t == 0 then
pairing > if b1 == 3 then
pairing > return $ A (- 1) 1
pairing > else
pairing > if b1 == 4 then return $ A 1 2 else ...
pairing > else
pairing > do let ...
pairing > ....’
pairing > |
pairing > 48 | let t = fromBytes bs
pairing > | ^^^^^^^^^^^^
pairing >
Is building / testing with stack supported?
I realize that this is for pairing
. I can build / test pairing
master
without problem, but its 1.0
tag cannot be build. arithemtic-circuits
requires >= 1.0
and < 1.1
~/s/g/H/K/pairing ((1.0)|✔) $ stack build
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for poly-0.3.2.0:
vector-algorithms-0.8.0.1 from stack configuration does not match >=0.8.0.3 (latest matching version is 0.8.0.3)
needed due to pairing-1.0.0 -> poly-0.3.2.0
Maybe that is the problem?
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.