mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Fix complains and bad test (#11555)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
@@ -11,7 +11,10 @@ import (
|
||||
)
|
||||
|
||||
func ConvertFromInterfacePrivKey(privkey crypto.PrivKey) (*ecdsa.PrivateKey, error) {
|
||||
secpKey := (privkey.(*crypto.Secp256k1PrivateKey))
|
||||
secpKey, ok := privkey.(*crypto.Secp256k1PrivateKey)
|
||||
if !ok {
|
||||
return nil, errors.New("could not cast to Secp256k1PrivateKey")
|
||||
}
|
||||
rawKey, err := secpKey.Raw()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user