@@ -161,8 +161,8 @@ impl IdentityAssertion {
161161 ///
162162 /// [`ManifestStore`]: c2pa::ManifestStore
163163 #[ cfg( feature = "v1_api" ) ]
164- pub async fn summarize_reader < SV : SignatureVerifier > (
165- reader : & c2pa:: Reader ,
164+ pub async fn summarize_manifest_store < SV : SignatureVerifier > (
165+ store : & c2pa:: ManifestStore ,
166166 verifier : & SV ,
167167 ) -> impl Serialize {
168168 // NOTE: We can't write this using .map(...).collect() because there are async
@@ -174,7 +174,7 @@ impl IdentityAssertion {
174174 > ,
175175 > = BTreeMap :: new ( ) ;
176176
177- for ( id, manifest) in reader . manifests ( ) {
177+ for ( id, manifest) in store . manifests ( ) {
178178 let report = Self :: summarize_all_impl ( manifest, verifier) . await ;
179179 reports. insert ( id. clone ( ) , report) ;
180180 }
@@ -200,13 +200,9 @@ impl IdentityAssertion {
200200 > ,
201201 > = BTreeMap :: new ( ) ;
202202
203- for manifest in reader. iter_manifests ( ) {
203+ for ( id , manifest) in reader. manifests ( ) {
204204 let report = Self :: summarize_all_impl ( manifest, verifier) . await ;
205-
206- // TO DO: What to do if manifest doesn't have a label?
207- if let Some ( label) = manifest. label ( ) {
208- reports. insert ( label. to_owned ( ) , report) ;
209- }
205+ reports. insert ( id. clone ( ) , report) ;
210206 }
211207
212208 IdentityAssertionsForManifestStore :: <
0 commit comments