forked from TrueCloudLab/frostfs-node
[#848] ir/container: Prevent potential NPE in key conversion
Set `Curve` field in `ecdsa.PublicKey` instance from `keys.PublicKey` one in `checkKeyOwnership` method of container processor. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
3e5c7e0ade
commit
264ab489bb
1 changed files with 3 additions and 2 deletions
|
@ -53,8 +53,9 @@ func (cp *Processor) checkKeyOwnership(ownerIDSrc ownerIDSource, key *keys.Publi
|
||||||
|
|
||||||
// TODO: need more convenient way to do this
|
// TODO: need more convenient way to do this
|
||||||
w, err := owner.NEO3WalletFromPublicKey(&ecdsa.PublicKey{
|
w, err := owner.NEO3WalletFromPublicKey(&ecdsa.PublicKey{
|
||||||
X: key.X,
|
Curve: key.Curve,
|
||||||
Y: key.Y,
|
X: key.X,
|
||||||
|
Y: key.Y,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue