forked from TrueCloudLab/frostfs-node
[#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:
parent
80d3c7f9d6
commit
13c4a9f4b8
4 changed files with 16 additions and 13 deletions
|
@ -101,7 +101,7 @@ func (s *Service) replicateLoop(ctx context.Context) {
|
|||
|
||||
func (s *Service) replicate(op movePair) error {
|
||||
req := newApplyRequest(&op)
|
||||
err := signMessage(req, s.key)
|
||||
err := SignMessage(req, s.key)
|
||||
if err != nil {
|
||||
return fmt.Errorf("can't sign data: %w", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue