-
Notifications
You must be signed in to change notification settings - Fork 22
Rad Commit #3
Comments
Nice. Yeah, I like the URN approach. What I'm wondering is if the signature includes the public key or if we can separate them for ease of use. Also, I would keep the email address too as optional. Basically something like:
In terms of encoding my preference would be with base58, but we could also consider using multibase.. Actually perhaps the email shouldn't be optional, as this allows other parsers to simply ignore what comes after the email.. |
The signature does not include the public key. It is a ed25519 signature, signing the same content that gets signed by GPG when signing a commit, we could also allow GPG signatures in the trailer which alao won't store the public key. The issue I discovered, is that by bringing commit signatures into the commit msg we are essentially allowing users to remove existing signatures.. With the encoding and the email part I concur. 👍 |
I don't understand, why would users remove signatures? And how would they even be able to without changing the commit hash? |
One important thing to remember also is when signing the commit via trailers, you can't sign the commit hash, since the commit hash will be a function of the commit message, so instead it probably make sense to sign the tree. |
You're right, since the commit hash is being generated through the commit body and header, this shouldn't be a problem.
Okay yeah the tree would be better, since we don't now the final commit message until the commit happens.. |
Has been deprioritized in favor of #2 |
This issue should be a draft for an eventual specification to how git commits should be formatted if we want to use multiple git trailers and different types of signatures (gpg, ed25519) to improve the way the verification of the authors, committer and others who participated in a commit.
Status quo
Concept
Discussion Points
base58
,base64
, others?)Signed-off-by
,Committed-by
,Co-authored-by
,Reviewed-by
)eip155:<sig>
,gpg:<sig>
Example
The text was updated successfully, but these errors were encountered: