Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/v3-core' into v3-core
Browse files Browse the repository at this point in the history
  • Loading branch information
shunkakinoki committed Mar 4, 2025
2 parents 6ab71a0 + 1d6bd17 commit b2f2c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/v3/v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@ func decodeSignatureEthSignLeaf(firstByte byte, data *[]byte) (*signatureTreeSig
}

func (l *signatureTreeSignatureEthSignLeaf) recover(ctx context.Context, subdigest core.Subdigest, provider *ethrpc.Provider, signerSignatures core.SignerSignatures) (WalletConfigTree, *big.Int, error) {
signature := append(l.R[:], l.YParityAndS[:]...)
signature := bytes.Join([][]byte{l.R[:], l.YParityAndS[:], {l.V + 27}}, nil)
address, err := ecrecover(subdigest.EthSignSubdigest(), signature)
if err != nil {
return nil, nil, fmt.Errorf("unable to recover eth sign signature: %w", err)
Expand Down

0 comments on commit b2f2c47

Please sign in to comment.