node: Move SignMessage
to separate package #1132
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1132
Loading…
Reference in a new issue
No description provided.
Delete branch "achuprov/frostfs-node:feat/move_SignMessage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Close #1092
Signed-off-by: Alexander Chuprov a.chuprov@yadro.com
@ -0,0 +1,44 @@
package message
I would also avoid such a generic name, how about
ctrlmessage
(it uses signature type from protodefs of the control service).@ -0,0 +17,4 @@
}
// SignMessage signs Control service message with private key.
func SignMessage(key *ecdsa.PrivateKey, msg SignedMessage) error {
Should be
Sign
, so that caller hasmessage.Sign
a5ea01f5ad
toe562f33042
@ -0,0 +1,44 @@
package ctrlmessage
Can we also rename the directory?
Please, take a look at the commit message too, it seems
SignMessage
is missing.The component is also
control
, notnode
e562f33042
to4e9c91fc3e
4e9c91fc3e
tob078fe5ba1