Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
rGetK2Map :: RPhase3Msg -> K2Mappedersen-commitment MICP No documentation available.
-
pedersen-commitment MICP.Internal No documentation available.
type
GtoK1Map = Map Int Integerpedersen-commitment MICP.Internal No documentation available.
type
GtoK2Map = Map Int Integerpedersen-commitment MICP.Internal No documentation available.
-
pedersen-commitment MICP.Internal No documentation available.
-
pedersen-commitment MICP.Internal No documentation available.
computeDMap :: Integer -> K1Map -> Integer -> DMappedersen-commitment MICP.Internal 4(c),5(c): computes d_i = c*k_i + r
genKMaps :: forall (m :: Type -> Type) . MonadRandom m => [Word8] -> SPFM m (K1Map, K2Map)pedersen-commitment MICP.Internal 2(b), 3(a): Generate two integer maps where the ith entry in each map corresponds to the ith k1 and k2 values respectively such that `Hn(k1_i) xor Hn(k2_i) == byte_i`. Two maps are generated map because the values k and k' are to be exposed at different stages of the protocol.
kmapToGKMap :: forall (m :: Type -> Type) . Monad m => Map Int Integer -> SPFM m (Map Int Integer)pedersen-commitment MICP.Internal Takes a Map k v and returns Map k (g^v mod p)
-
pedersen-commitment MICP.Internal 5(a), 6(a): Verifies that the counterparty has not lied about their original commitment and has not tampered with the k values they used to encrypt their original message: `g^d_i == (g^k_i)^c * g^r`