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,6 +53,7 @@ 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{
|
||||||
|
Curve: key.Curve,
|
||||||
X: key.X,
|
X: key.X,
|
||||||
Y: key.Y,
|
Y: key.Y,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue