-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can provide a demo for building an eth tx and sign it then send to endpoint? #296
Comments
func rebuildSignature(unsignedTx *types.Transaction, siger types.EIP155Signer, sigData *MPCSignatureData) (*types.Transaction, error) {
} //I'm trying to reconstruct an eth signature using MPC signatureData without the V , can anyone tell me if this is correct? And does recid choose 0 or 1? |
You can reconstruct signature by combine https://github.com/bnb-chain/tss-lib/blob/master/common/signature.pb.go#L36-L38 signatureData <- endCh
signature := append(signatureData.GetSignature(), signatureData.GetSignatureRecovery()...)
unsignedTx.WithSignature(siger, signature) |
You can follow this sample: |
Hi, I'm getting failed when trying to sign a constructed transaction. |
Hi, I try to reconstruct the signature this way along with the transaction. But when I do ecrecover, the address is always different on every attempt of signing while the transaction data still the same.
On this case, the recovered address alwayd produce different address. |
I'm a little confused, how to construct an eth transaction and sign it with tss signing, and finally send it to the target blockchain.
The text was updated successfully, but these errors were encountered: