ZenGo-X / multi-party-ecdsa

Rust implementation of {t,n}-threshold ECDSA (elliptic curve digital signature algorithm).
GNU General Public License v3.0
975 stars 308 forks source link

how to export the pubkey when use gg18_keygen_client ? #90

Closed paizzj closed 4 years ago

paizzj commented 4 years ago

follow the multi-party-ecdsa demo, when keygen use gg18_keygen_client, the output file keys.store, that is a json file. what's the mean of all fields ? especially how to generate the pubkey based on keys.store file ?

omershlo commented 4 years ago

Hi,

The fields are basically the outputs of the distributed key generation of GG19 (https://github.com/KZen-networks/multi-party-ecdsa/blob/master/docs/gg19.pdf). It is pretty much 1:1 with the paper.

As part of the key generation each party must learn the joint public key. The last field in the json is this public key. Make sure that it is the same value for all parties.

Please let me know if you have more questions or need more details.

paizzj commented 4 years ago

thanks a lot.

elpddev commented 2 years ago

Thank you for a great library.

How to take the last part that is the number array and convert it to public key?