Skip to main content

Module cggmp21_compat

Module cggmp21_compat 

Source
Expand description

Tools for migrating key shares from cggmp24 to cggmp24

CGGMP24 revision of the protocol introduced changes in the structure of the key shares:

  • The core key share IncompleteKeyShare has not changed, you can use cggmp24 library to deserialize core key share from cggmp24
  • However, AuxInfo and KeyShare have changed: now each signer has distinct Paillier and Pedersen keys (previously, they both were one key)

If you have KeyShares serialized by cggmp24, we advise you to discard auxiliary data stored within the key share, extract the core key share (that contains the most important part of the key share), and re-generate auxiliary data by carrying out aux_info_gen protocol.

Structsยง

ExtractCoreShare
Deserializes a key share from cggmp24, discards the auxiliary data and extracts the core share.