forked from TrueCloudLab/frostfs-api-go
[#340] owner: Prevent potential NPE in NEO3WalletFromPublicKey
Copy `Curve` field of `ecdsa.PublicKey` arg to `keys.PublicKey` instance in `NEO3WalletFromPublicKey` function. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>support/v2.15
parent
6d0b3135ff
commit
e887368be6
|
@ -22,6 +22,7 @@ func NEO3WalletFromPublicKey(key *ecdsa.PublicKey) (*NEO3Wallet, error) {
|
|||
}
|
||||
|
||||
neoPublicKey := keys.PublicKey{
|
||||
Curve: key.Curve,
|
||||
X: key.X,
|
||||
Y: key.Y,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue