Optionally disable random salt & notation in API
I'm using the Sequoia PGP Rust API. I'd like to disable the random salt and related annotation: salt@notations.sequoia-pgp.org
https://gitlab.com/sequoia-pgp/sequoia/-/blob/main/openpgp/src/packet/signature.rs#L1715
In my use-case I don't generate the keys as I have predefined keys and use sequoia to build GPG key files. I want small keys with nothing extra, and as deterministic as possible.
It also feels like an advertisement at the moment when I look at the keys I make with this great API.
Thank you for considering.
My proposal is to add field and a method to builder, e.g.
SignatureBuilder::new(SignatureType::PositiveCertification)
.set_primary_userid(true)?
...
.disable_salt(true) // <-- Something like this
Then the salt/annotation line can be optional.
Edited by Jari Pennanen