ZenGo-X / multi-party-ecdsa

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

how to get the final public key from the generated keys #202

Closed 0xbok closed 1 year ago

0xbok commented 1 year ago

looks like it is y_sum_s in the generate key file.

ahsan-arif commented 1 year ago

Hi! Is y_sum_s the public key? Here is what I did:

  1. I generated an address from this y_sum_s vector by using the following code

    const pkey = ethers.utils.computeAddress("0x" + Buffer.from(y_sum_s).toString("hex"));

  2. Funded the account with 0.2 ETH, and signed the transaction to send 0.001 ETH to some address.

  3. When I tried to broadcast the transaction I received an error saying something like "Insufficient funds for Gas + Value".

Can you please help in this regard?

0xbok commented 1 year ago

yeah, i was probably wrong. I extracted the eth address using ecrecover:

Confirm using multiple signatures that you are getting the same address back.

venuswhispers commented 1 month ago

Hello, I am sorry, but whenever creating signatures, it generates different addresses What about this?

venuswhispers commented 1 month ago

Thanks @ahsan-arif Your post helped me a lot. thanks again 🤙