@@ -161,8 +161,8 @@ impl IdentityAssertion {
161
161
///
162
162
/// [`ManifestStore`]: c2pa::ManifestStore
163
163
#[ 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 ,
166
166
verifier : & SV ,
167
167
) -> impl Serialize {
168
168
// NOTE: We can't write this using .map(...).collect() because there are async
@@ -174,7 +174,7 @@ impl IdentityAssertion {
174
174
> ,
175
175
> = BTreeMap :: new ( ) ;
176
176
177
- for ( id, manifest) in reader . manifests ( ) {
177
+ for ( id, manifest) in store . manifests ( ) {
178
178
let report = Self :: summarize_all_impl ( manifest, verifier) . await ;
179
179
reports. insert ( id. clone ( ) , report) ;
180
180
}
@@ -200,13 +200,9 @@ impl IdentityAssertion {
200
200
> ,
201
201
> = BTreeMap :: new ( ) ;
202
202
203
- for manifest in reader. iter_manifests ( ) {
203
+ for ( id , manifest) in reader. manifests ( ) {
204
204
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) ;
210
206
}
211
207
212
208
IdentityAssertionsForManifestStore :: <
0 commit comments