@@ -112,7 +112,7 @@ contract IdentityVerificationHubImplV2 is ImplRoot {
112112 * @param output The formatted verification output containing proof results.
113113 * @param userDataToPass The user data passed through to the verification result handler.
114114 */
115- event VerificationPerformed (
115+ event DisclosureVerified (
116116 address indexed requestor ,
117117 uint8 indexed contractVersion ,
118118 bytes32 indexed attestationId ,
@@ -333,17 +333,28 @@ contract IdentityVerificationHubImplV2 is ImplRoot {
333333 (SelfStructs.HubInputHeader memory header , bytes calldata proofData ) = _decodeInput (baseVerificationInput);
334334
335335 // Perform verification and get output along with user data
336- (bytes memory output , uint256 destChainId , bytes memory userDataToPass , bytes32 configId , uint256 userIdentifier ) = _executeVerificationFlow (
337- header,
338- proofData,
339- userContextData
340- );
341-
342- // Emit verification event for tracking
343- emit VerificationPerformed (msg .sender , header.contractVersion, header.attestationId, destChainId, configId, userIdentifier, output, userDataToPass);
336+ (
337+ bytes memory output ,
338+ uint256 destChainId ,
339+ bytes memory userDataToPass ,
340+ bytes32 configId ,
341+ uint256 userIdentifier
342+ ) = _executeVerificationFlow (header, proofData, userContextData);
344343
345344 // Use destChainId and userDataToPass returned from _executeVerificationFlow
346345 _handleVerificationResult (destChainId, output, userDataToPass);
346+
347+ // Emit verification event for tracking
348+ emit DisclosureVerified (
349+ msg .sender ,
350+ header.contractVersion,
351+ header.attestationId,
352+ destChainId,
353+ configId,
354+ userIdentifier,
355+ output,
356+ userDataToPass
357+ );
347358 }
348359
349360 /**
@@ -577,7 +588,16 @@ contract IdentityVerificationHubImplV2 is ImplRoot {
577588 SelfStructs.HubInputHeader memory header ,
578589 bytes memory proofData ,
579590 bytes calldata userContextData
580- ) internal returns (bytes memory output , uint256 destChainId , bytes memory userDataToPass , bytes32 configId , uint256 userIdentifier ) {
591+ )
592+ internal
593+ returns (
594+ bytes memory output ,
595+ uint256 destChainId ,
596+ bytes memory userDataToPass ,
597+ bytes32 configId ,
598+ uint256 userIdentifier
599+ )
600+ {
581601 bytes calldata remainingData;
582602 {
583603 (configId, destChainId, userIdentifier, remainingData) = _decodeUserContextData (userContextData);
0 commit comments