fix: we need to strip off the key prefix

This commit is contained in:
Derrick Hammer 2024-01-07 22:38:19 -05:00
parent 291a87aefc
commit d6c7bd37dd
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ func (s *SignedMessage) DecodeMessage(dec *msgpack.Decoder) error {
s.message = message
if !ed25519.Verify(s.nodeId.Raw(), s.message, s.signature) {
if !ed25519.Verify(s.nodeId.Raw()[1:], s.message, s.signature) {
return errInvalidSignature
}