Options
All
  • Public
  • Public/Protected
  • All
Menu

Module crypto/elgamal

Index

Functions

createJointPublicKey

  • createJointPublicKey(publicKeys: arithm.ModPGroupElement[], group: arithm.ModPGroup): arithm.ModPGroupElement
  • Combines multiple public keys into a single shared public key.

    Parameters

    • publicKeys: arithm.ModPGroupElement[]
    • group: arithm.ModPGroup

    Returns arithm.ModPGroupElement

sum

  • sum(ciphertexts: arithm.PPGroupElement[], ppGroup: arithm.PPGroup): arithm.PPGroupElement
  • Obtain the encrypted sum of an array of ciphertexts

    Parameters

    • ciphertexts: arithm.PPGroupElement[]
    • ppGroup: arithm.PPGroup

    Returns arithm.PPGroupElement

Generated using TypeDoc