mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 15:03:45 +00:00
core/vm: simplify the return values format
This commit is contained in:
parent
6c7028a904
commit
d245194e77
1 changed files with 1 additions and 5 deletions
|
|
@ -1079,9 +1079,5 @@ func (c *p256Verify) Run(input []byte) ([]byte, error) {
|
||||||
x, y := new(big.Int).SetBytes(input[96:128]), new(big.Int).SetBytes(input[128:160])
|
x, y := new(big.Int).SetBytes(input[96:128]), new(big.Int).SetBytes(input[128:160])
|
||||||
|
|
||||||
// Verify the secp256r1 signature
|
// Verify the secp256r1 signature
|
||||||
if result, err := secp256r1.Verify(hash, r, s, x, y); err != nil {
|
return secp256r1.Verify(hash, r, s, x, y)
|
||||||
return nil, err
|
|
||||||
} else {
|
|
||||||
return result, nil
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue