[#317] morph/client: Return complete eACL signature from contract

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-01-14 19:00:10 +03:00 committed by Alex Vanin
parent c75a828adf
commit a89567a88d
4 changed files with 26 additions and 14 deletions

View file

@ -111,14 +111,7 @@ func (s *morphExecutor) GetExtendedACL(ctx context.Context, body *container.GetE
res := new(container.GetExtendedACLResponseBody)
res.SetEACL(table.ToV2())
// Public key should be obtained by request sender, so we set up only
// the signature. Technically, node can make invocation to find container
// owner public key, but request sender cannot trust this info.
sig := new(refs.Signature)
sig.SetSign(signature)
res.SetSignature(sig)
res.SetSignature(signature.ToV2())
return res, nil
}