Creating self signatures is brittle
Consider SignatureBuilder::sign_direct_key
. This takes a signer and a public key. If this is for a self signature, this information is redundant: the signer already includes the public key! Change the public key parameter to an option, which defaults to signer.public()
, if None. Also update the documentation.
Edited by Neal H. Walfield