-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
select jwk in move #15107
base: zjma/regex
Are you sure you want to change the base?
select jwk in move #15107
Conversation
⏱️ 2h 42m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
pk.inner_keyless_pk().iss_val.as_bytes().to_vec().as_move_value(), | ||
sig.parse_jwt_header().unwrap().kid.as_bytes().to_vec().as_move_value(), | ||
]; | ||
let move_ret_val = session.execute_function_bypass_visibility( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bookmark 1
let federated_jwks = get_federated_jwks_onchain(resolver, &fed_pk.jwk_addr) | ||
.map_err(|_| { | ||
invalid_signature!(format!( | ||
let jwk = if std::env::var("FIND_JWK_IN_MOVE").unwrap_or_default().as_str() == "1" { //TODO: gated by a flag instead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed!
} | ||
|
||
all_times.sort(); | ||
println!("P50={:?}", all_times[50]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you running this with cargo test --release
I hope? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
38bfcb7
to
21d1b7e
Compare
Description
When validating a keyless txn, we find a JWK by iss.
This
find_jwk_by_iss
process is currently in VM, and we are moving it to the framework for better upgradability.Potential dependency: #15139
How Has This Been Tested?
Key Areas to Review
Type of Change
Which Components or Systems Does This Change Impact?
Checklist