File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
rust/signed_doc/src/validator Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments