diff --git a/client/common.go b/client/common.go index e0510588..5a50b28a 100644 --- a/client/common.go +++ b/client/common.go @@ -260,6 +260,16 @@ func (x *contextCall) processResponse() bool { // processResponse verifies response signature and converts status to an error if needed. func (c *Client) processResponse(resp responseV2) (apistatus.Status, error) { + if c.prm.cbRespInfo != nil { + rmi := ResponseMetaInfo{ + key: resp.GetVerificationHeader().GetBodySignature().GetKey(), + epoch: resp.GetMetaHeader().GetEpoch(), + } + if err := c.prm.cbRespInfo(rmi); err != nil { + return nil, fmt.Errorf("response callback error: %w", err) + } + } + err := signature.VerifyServiceMessage(resp) if err != nil { return nil, fmt.Errorf("invalid response signature: %w", err)