| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Bulletproofs.InnerProductProof
Synopsis
- generateProof :: (AsInteger f, Eq f, Field f) => InnerProductBase -> Point -> InnerProductWitness f -> InnerProductProof f
- verifyProof :: (AsInteger f, Field f) => Integer -> InnerProductBase -> Point -> InnerProductProof f -> Bool
- data InnerProductProof f = InnerProductProof {}
- data InnerProductBase = InnerProductBase {}
- data InnerProductWitness f = InnerProductWitness {}
Documentation
Arguments
| :: (AsInteger f, Eq f, Field f) | |
| => InnerProductBase | Generators Gs, Hs, h |
| -> Point | Commitment P = A + xS − zG + (z*y^n + z^2 * 2^n) * hs' of vectors l and r whose inner product is t |
| -> InnerProductWitness f | Vectors l and r that hide bit vectors aL and aR, respectively |
| -> InnerProductProof f |
Generate proof that a witness l, r satisfies the inner product relation on public input (Gs, Hs, h)
Arguments
| :: (AsInteger f, Field f) | |
| => Integer | Range upper bound |
| -> InnerProductBase | Generators Gs, Hs, h |
| -> Point | Commitment P |
| -> InnerProductProof f | Proof that a secret committed value lies in a certain interval |
| -> Bool |
Optimized non-interactive verifier using multi-exponentiation and batch verification
data InnerProductProof f Source #
Constructors
| InnerProductProof | |
Fields
| |
Instances
data InnerProductBase Source #
Constructors
| InnerProductBase | |
Instances
| Eq InnerProductBase Source # | |
Defined in Bulletproofs.InnerProductProof.Internal Methods (==) :: InnerProductBase -> InnerProductBase -> Bool # (/=) :: InnerProductBase -> InnerProductBase -> Bool # | |
| Show InnerProductBase Source # | |
Defined in Bulletproofs.InnerProductProof.Internal Methods showsPrec :: Int -> InnerProductBase -> ShowS # show :: InnerProductBase -> String # showList :: [InnerProductBase] -> ShowS # | |
data InnerProductWitness f Source #
Constructors
| InnerProductWitness | |
Instances
| Eq f => Eq (InnerProductWitness f) Source # | |
Defined in Bulletproofs.InnerProductProof.Internal Methods (==) :: InnerProductWitness f -> InnerProductWitness f -> Bool # (/=) :: InnerProductWitness f -> InnerProductWitness f -> Bool # | |
| Show f => Show (InnerProductWitness f) Source # | |
Defined in Bulletproofs.InnerProductProof.Internal Methods showsPrec :: Int -> InnerProductWitness f -> ShowS # show :: InnerProductWitness f -> String # showList :: [InnerProductWitness f] -> ShowS # | |