Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions sdk/src/claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2001,6 +2001,13 @@ impl Claim {
)?;
}

// Skip further checks for v1 claims if not in strict validation mode
if claim.version() == 1 {
if let Ok(false) = get_settings_value::<bool>("verify.strict_v1_validation") {
return Ok(()); // no further checks for v1 claims
}
}

// 1. make sure every action has an actions array that is not empty
if let Some(bad_assertion) = all_actions.iter().find(|a| {
if let Ok(actions) = Actions::from_assertion(a.assertion()) {
Expand Down