Skip to content

fix(tx): gate only signature production outside the auth procedure - #3471

Merged
PhilippGackstatter merged 4 commits into
nextfrom
fix-auth-request-verify
Aug 4, 2026
Merged

fix(tx): gate only signature production outside the auth procedure#3471
PhilippGackstatter merged 4 commits into
nextfrom
fix-auth-request-verify

Conversation

@onurinanc

Copy link
Copy Markdown
Collaborator

Closes: #3466

@zeapoz zeapoz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, left some comments!

Comment on lines +58 to +62
/// Returns the compiled component code, so a transaction script can link against it and `call.`
/// the `emit_auth_request` procedure.
pub fn code() -> &'static AccountComponentCode {
&AUTH_REQUEST_PROBE_PACKAGE
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this method? Can we not use e.g. AccountComponent::component_code as we're converting to that type in the tests anyway?

execution_result,
Err(TransactionExecutorError::AuthRequestOutsideAuthProcedure)
);
assert_matches!(execution_result, Ok(_));

@zeapoz zeapoz Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're only checking if the transaction succeeded then there should be no need for this assert_matches!, we could just unwrap directly.

@PhilippGackstatter PhilippGackstatter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with moving the auth probe component to miden-testing.

Comment thread crates/miden-standards/src/testing/account_component/auth_request_probe.rs Outdated
@onurinanc

Copy link
Copy Markdown
Collaborator Author

@PhilippGackstatter Is it possible to merge this PR? It's a blocker for #3044

@PhilippGackstatter
PhilippGackstatter added this pull request to the merge queue Aug 4, 2026
Merged via the queue into next with commit 017ea3d Aug 4, 2026
19 checks passed
@PhilippGackstatter
PhilippGackstatter deleted the fix-auth-request-verify branch August 4, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AuthRequest guard blocks signature verification outside the auth procedure

3 participants