Skip to content

Commit 17b0b72

Browse files
committed
Rename verify_trusted_issue_bundle function to check_issue_bundle_without_sighash in issuance
1 parent e9a1bb4 commit 17b0b72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/issuance.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 ...

0 commit comments

Comments
 (0)