bulletproofs-0.2.0

Safe HaskellNone
LanguageHaskell2010

Bulletproofs.Utils

Synopsis

Documentation

dotp :: Num a => [a] -> [a] -> a Source #

Inner product between two vector polynomials

addP :: Point -> Point -> Point Source #

Add two points of the same curve

subP :: Point -> Point -> Point Source #

Substract two points of the same curve

mulP :: Fq -> Point -> Point Source #

Multiply a scalar and a point in an elliptic curve

shamirU :: Fq -> Fq -> Fq -> Fq Source #

shamirX :: Point -> Point -> Point -> Point -> Fq -> Fq -> Fq Source #

commit :: Fq -> Fq -> Point Source #

Create a Pedersen commitment to a value given a value and a blinding factor

hadamardp :: Num a => [a] -> [a] -> [a] Source #

Hadamard product or entry wise multiplication of two vectors

powerVector :: Fq -> Integer -> [Fq] Source #

Return a vector containing the first n powers of a