keys: trivial code simplification
This commit is contained in:
parent
5acdcfb8a4
commit
7d6898677b
1 changed files with 1 additions and 2 deletions
|
@ -338,8 +338,7 @@ func (p *PublicKey) Verify(signature []byte, hash []byte) bool {
|
|||
}
|
||||
rBytes := new(big.Int).SetBytes(signature[0:32])
|
||||
sBytes := new(big.Int).SetBytes(signature[32:64])
|
||||
pk := ecdsa.PublicKey(*p)
|
||||
return ecdsa.Verify(&pk, hash, rBytes, sBytes)
|
||||
return ecdsa.Verify((*ecdsa.PublicKey)(p), hash, rBytes, sBytes)
|
||||
}
|
||||
|
||||
// VerifyHashable returns true if the signature is valid and corresponds
|
||||
|
|
Loading…
Reference in a new issue