| 52 | } |
| 53 | |
| 54 | foreach (const ManifestDescriptor& manifest, index.manifests()) { |
| 55 | Option<Error> error = validateDigest(manifest.digest()); |
| 56 | if (error.isSome()) { |
| 57 | return Error( |
| 58 | "Failed to validate 'digest' of the 'manifest': " + error->message); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | return None(); |
| 63 | } |