fix(crypto): fix build when openssl is enabled

This commit is contained in:
Steven Allen 2019-12-30 10:41:06 -08:00
parent 98dd5161fa
commit 204a57d1af

View File

@ -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