Compare commits
1 commit
master
...
debug/1/si
Author | SHA1 | Date | |
---|---|---|---|
799def09a7 |
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue