Skip to content

Commit c3a2852

Browse files
committed
Deprecate Sig.issuer_fpr, add changelogs
Signed-off-by: Daniel Alley <dalley@redhat.com>
1 parent 90c3a7e commit c3a2852

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

NEXT.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33
v0.1.31
44

55
New:
6+
- Added `Sig.issuer_fingerprint`, `Sig.issuer_key_id`, `Sig.signers_user_id`, and `Sig.expiration` [#60]
7+
- Added docstrings to the `Sig` API [#60]
68

79
Changed:
8-
- This release changes metadata of the project and the release workflow. There are no functional changes. See changelog for version 0.1.30.
9-
- Changed Rust edition from 2021 to 2024.
10+
- `Sig.issuer_fpr` is now considered deprecated, use `Sig.issuer_fingerprint` instead [#60]
1011

1112
Removed:
1213

14+
[#60]: https://github.com/wiktor-k/pysequoia/pull/60
15+
1316
### Release checklist:
1417
### [ ] Change version in `Cargo.toml` and `pyproject.toml` and `NEXT.md`
1518
### [ ] Update dependencies via `cargo update`

src/signature.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ impl Sig {
6262
Ok(crate::serialize(self.sig.clone().into(), None)?.into())
6363
}
6464

65-
/// The fingerprint of the key that made this signature, as a lowercase hex string.
65+
/// DEPRECATED: The fingerprint of the key that made this signature, as a lowercase hex string.
6666
///
67-
/// Alias for ``issuer_fingerprint``.
67+
/// Alias for ``issuer_fingerprint``. Prefer ``issuer_fingerprint`` going forwards.
6868
///
6969
/// Returns ``None`` if the signature does not carry an issuer fingerprint subpacket.
7070
/// Prefer this over ``issuer_key_id`` when available, as fingerprints are collision-resistant.
7171
#[getter]
72+
#[deprecated = "Prefer Sig.issuer_fingerprint"]
7273
pub fn issuer_fpr(&self) -> Option<String> {
7374
self.sig
7475
.issuer_fingerprints()

0 commit comments

Comments
 (0)