Compare commits

...

1 commit

Author SHA1 Message Date
799def09a7 Verif 2023-07-18 16:00:11 +03:00

View file

@ -50,6 +50,10 @@ func signServiceRequest(key *ecdsa.PrivateKey, v serviceRequest) error {
if err := signMessageParts(key, body, meta, header, header != nil, result); err != nil { if err := signMessageParts(key, body, meta, header, header != nil, result); err != nil {
return err return err
} }
if err := verifyServiceMessagePart(body, result.GetBodySignature); err != nil {
return fmt.Errorf("DEBUG POINT: could not verify body: %w", err)
}
result.SetOrigin(header) result.SetOrigin(header)
v.SetVerificationHeader(result) v.SetVerificationHeader(result)
return nil return nil