mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-03-25 12:50:08 +08:00
fix(crypto): fix build when openssl is enabled
This commit is contained in:
parent
98dd5161fa
commit
204a57d1af
@ -26,7 +26,7 @@ func KeyPairFromStdKey(priv crypto.PrivateKey) (PrivKey, PubKey, error) {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
return &opensslPrivateKey{pk}, &opensslPublicKey{pk}, nil
|
||||
return &opensslPrivateKey{pk}, &opensslPublicKey{key: pk}, nil
|
||||
|
||||
case *ecdsa.PrivateKey:
|
||||
return &ECDSAPrivateKey{p}, &ECDSAPublicKey{&p.PublicKey}, nil
|
||||
|
Loading…
Reference in New Issue
Block a user