File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -645,14 +645,14 @@ impl IssueBundle<Signed> {
645645 }
646646}
647647
648- /// Validates an [`IssueBundle`] without signature verification.
648+ /// Checks an [`IssueBundle`] without signature verification.
649649///
650650/// Performs the same validation as [`verify_issue_bundle`] except skips the signature check.
651651/// Use when signatures are already known to be valid (e.g., verifying historical blocks
652652/// from a trusted checkpoint).
653653///
654654/// See [`verify_issue_bundle`] for full documentation of validation rules and errors.
655- pub fn verify_trusted_issue_bundle (
655+ pub fn check_issue_bundle_without_sighash (
656656 bundle : & IssueBundle < Signed > ,
657657 mut get_global_records : impl FnMut ( & AssetBase ) -> Option < AssetRecord > ,
658658 first_nullifier : & Nullifier ,
@@ -765,7 +765,7 @@ pub fn verify_issue_bundle(
765765 . verify ( & sighash, bundle. authorization ( ) . signature ( ) . sig ( ) )
766766 . map_err ( |_| InvalidIssueBundleSig ) ?;
767767
768- verify_trusted_issue_bundle ( bundle, get_global_records, first_nullifier)
768+ check_issue_bundle_without_sighash ( bundle, get_global_records, first_nullifier)
769769}
770770
771771// FIXME: move it and add tests ...
You can’t perform that action at this time.
0 commit comments