[#1332] tree: Make SignMessage public

It will allow reusing signing routine in other components
(e.g. `neofs-cli`).

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-10-10 18:32:04 +03:00 committed by Pavel Karpy
parent 80d3c7f9d6
commit 13c4a9f4b8
4 changed files with 16 additions and 13 deletions

View file

@ -69,7 +69,7 @@ func (s *Service) synchronizeSingle(ctx context.Context, cid cid.ID, treeID stri
Height: newHeight,
},
}
if err := signMessage(req, s.key); err != nil {
if err := SignMessage(req, s.key); err != nil {
return newHeight, err
}