@@ -1669,14 +1669,11 @@ impl Store {
16691669 "ingredient hash does not match found ingredient" . to_string ( ) ,
16701670 ) ,
16711671 ) ?;
1672- return Err ( Error :: HashMismatch (
1673- "ingredient hash does not match found ingredient" . to_string ( ) ,
1674- ) ) ; // hard stop regardless of StatusTracker mode
16751672 }
16761673
1677- // if manifest hash did not match and this is a V2 or greater claim then we
1674+ // if manifest hash did not match because of redaction and this is a V2 or greater claim then we
16781675 // must try the signature validation method before proceeding
1679- if !manifests_match && ingredient_version > 1 {
1676+ if !manifests_match && has_redactions && ingredient_version > 1 {
16801677 let claim_signature =
16811678 ingredient_assertion. signature ( ) . ok_or_else ( || {
16821679 log_item ! (
@@ -1724,10 +1721,6 @@ impl Store {
17241721 "ingredient claimSignature mismatch" . to_string ( ) ,
17251722 ) ,
17261723 ) ?;
1727- return Err ( Error :: HashMismatch (
1728- "ingredient signature box hash does not match found ingredient"
1729- . to_string ( ) ,
1730- ) ) ; // hard stop regardless of StatusTracker mode
17311724 }
17321725 }
17331726
@@ -1737,19 +1730,16 @@ impl Store {
17371730 Claim :: verify_hash_binding ( ingredient, asset_data, svi, validation_log) ?;
17381731 }
17391732
1740- // if manifest hash did not match we continue on to do a full claim validation
1741- if !manifests_match {
1742- Claim :: verify_claim (
1743- ingredient,
1744- asset_data,
1745- svi,
1746- check_ingredient_trust,
1747- & store. ctp ,
1748- validation_log,
1749- http_resolver,
1750- settings,
1751- ) ?;
1752- }
1733+ Claim :: verify_claim (
1734+ ingredient,
1735+ asset_data,
1736+ svi,
1737+ check_ingredient_trust,
1738+ & store. ctp ,
1739+ validation_log,
1740+ http_resolver,
1741+ settings,
1742+ ) ?;
17531743
17541744 // recurse nested ingredients
17551745 Store :: ingredient_checks (
@@ -1856,7 +1846,7 @@ impl Store {
18561846
18571847 // allow the extra ingredient trust checks
18581848 // these checks are to prevent the trust spoofing
1859- let check_ingredient_trust = settings. verify . check_ingredient_trust ;
1849+ let check_ingredient_trust = settings. verify . verify_trust ;
18601850
18611851 // get the 1.1-1.2 box hash
18621852 let ingredient_hashes = store. get_manifest_box_hashes ( ingredient) ;
@@ -1903,14 +1893,11 @@ impl Store {
19031893 "ingredient hash does not match found ingredient" . to_string ( ) ,
19041894 ) ,
19051895 ) ?;
1906- return Err ( Error :: HashMismatch (
1907- "ingredient hash does not match found ingredient" . to_string ( ) ,
1908- ) ) ; // hard stop regardless of StatusTracker mode
19091896 }
19101897
19111898 // if manifest hash did not match and this is a V2 or greater claim then we
19121899 // must try the signature validation method before proceeding
1913- if !manifests_match && ingredient_version > 1 {
1900+ if !manifests_match && has_redactions && ingredient_version > 1 {
19141901 let claim_signature =
19151902 ingredient_assertion. signature ( ) . ok_or_else ( || {
19161903 log_item ! (
@@ -1958,10 +1945,6 @@ impl Store {
19581945 "ingredient claimSignature mismatch" . to_string ( ) ,
19591946 ) ,
19601947 ) ?;
1961- return Err ( Error :: HashMismatch (
1962- "ingredient signature box hash does not match found ingredient"
1963- . to_string ( ) ,
1964- ) ) ; // hard stop regardless of StatusTracker mode
19651948 }
19661949 }
19671950
@@ -1971,20 +1954,17 @@ impl Store {
19711954 Claim :: verify_hash_binding ( ingredient, asset_data, svi, validation_log) ?;
19721955 }
19731956
1974- // if manifest hash did not match we continue on to do a full claim validation
1975- if !manifests_match {
1976- Claim :: verify_claim_async (
1977- ingredient,
1978- asset_data,
1979- svi,
1980- check_ingredient_trust,
1981- & store. ctp ,
1982- validation_log,
1983- http_resolver,
1984- settings,
1985- )
1986- . await ?;
1987- }
1957+ Claim :: verify_claim_async (
1958+ ingredient,
1959+ asset_data,
1960+ svi,
1961+ check_ingredient_trust,
1962+ & store. ctp ,
1963+ validation_log,
1964+ http_resolver,
1965+ settings,
1966+ )
1967+ . await ?;
19881968
19891969 // recurse nested ingredients
19901970 Box :: pin ( Store :: ingredient_checks_async (
0 commit comments