taurushq-io / multi-party-sig

Implementation of protocols for threshold signatures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ethereum signature format

valli0x opened this issue · comments

I cant sign a transaction and send it to ethereum. I think this method can help folks.
#87

I had a problem when I was sending a transaction to ethereum:

  1. s-values greater than secp256k1n/2 are considered invalid.
  2. Convert to Ethereum signature format with 'recovery id' v at the end.
commented

Same issue with the generated final signature. When I try to recover the ethereum address of generated final signature from cmp.Sing operation using web3js [ Example : web3.eth.accounts.recover("hello", final_signature_from_tarus_cmp_signing), this function return the wallet_address ], then the result address is not match with the address of public key generated from cmp.KeyGen operation.
I used tool to convert Publickey to ethereum address called eth_address_dump pip3 libary.