Skip to content

Commit 1f02d57

Browse files
committed
wip
1 parent 830e4ef commit 1f02d57

File tree

1 file changed

+6
-2
lines changed
  • rust/signed_doc/src/validator

1 file changed

+6
-2
lines changed

rust/signed_doc/src/validator/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ use crate::{
88
CatalystSignedDocument,
99
};
1010

11-
/// `CatalystSignedDocument` type based specific validation
11+
/// A comprehensive validation of the `CatalystSignedDocument`,
12+
/// including a signature verification and document type based validation.
1213
///
1314
/// # Errors
1415
///
1516
/// Returns a report of validation failures and the source error.
16-
pub fn validate(doc: &CatalystSignedDocument) -> Result<(), CatalystSignedDocError> {
17+
pub fn validate<F>(
18+
doc: &CatalystSignedDocument, _doc_getter: F,
19+
) -> Result<(), CatalystSignedDocError>
20+
where F: FnMut() -> Option<CatalystSignedDocument> {
1721
let error_report = ProblemReport::new("Catalyst Signed Document Validation");
1822

1923
let doc_type: DocumentType = match doc.doc_type().try_into() {

0 commit comments

Comments
 (0)