-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
* Create commit-signing.md * Update README.md
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Commit Signing | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
This repository requires commit signing. This document outlines how to get commit signing setup for this repo. | ||
|
||
This comment has been minimized.
Sorry, something went wrong. |
||
## Generate a GPG key | ||
|
||
If you're on a Mac, you can install the `gpg` CLI via homebrew with | ||
|
||
```shell | ||
brew install gpg | ||
``` | ||
|
||
Then you can use the `gpg` tool to generate a keypair: | ||
|
||
```shell | ||
gpg --default-new-key-algo rsa4096 --quick-generate-key --batch --passphrase "" "Firstname Lastname <[email protected]>" | ||
This comment has been minimized.
Sorry, something went wrong. |
||
``` | ||
|
||
Replace `[email protected]` with your actual email. **Leave the angle brackets though!** | ||
|
||
## Upload your public key to GitHub | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
From your GitHub settings (SSH & GPG Keys), you'll need to upload your recently-generated GPG public key. You can use the following command to grab that key: | ||
|
||
```shell | ||
gpg --armor --export [email protected] | pbcopy | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
``` | ||
|
||
This should copy your public key to your clipboard, and you can paste this into your GitHub settings page (for adding a new GPG key). | ||
|
||
## Enabling git signing for this repo | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
Now, let's set a few git options **local for this repo**. Make sure you're `cd`'d into this repo and then run the following. | ||
|
||
```shell | ||
# Use your public GitHub credentials | ||
git config user.name "Firstname Lastname" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
git config user.email "[email protected]" | ||
This comment has been minimized.
Sorry, something went wrong. |
||
# Set up commit signing | ||
git config user.signingkey [email protected] | ||
git config user.gpgsign true | ||
``` | ||
|
||
Notice the *lack* of `--global` flag in those commands. This will set these git credentials/configuration for just this repository. |
2 comments
on commit de66508
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EIP-170 issue and discussion: ethereum/EIPs#170
pyethereum implementation: https://github.com/ethereum/pyethereum/blob/5217294871283d8dc4fb3ca9d8a78c7d416490e8/ethereum/messages.py#L397
Citation
Please cite this document as:
Vitalik Buterin (@vbuterin), "EIP-170: Contract 880105https://github.com/ethereum/EIPs/issues/170EIP-170 issue and discussion: ethereum/EIPs#170
pyethereum implementation: https://github.com/ethereum/pyethereum/blob/5217294871283d8dc4fb3ca9d8a78c7d416490e8/ethereum/messages.py#L397
Citation
Please cite this document as:
Vitalik Buterin (@vbuterin), "EIP-170: Contract
de66508#diff-90375ef487a626a7cf516debb0054f68f603755295bbbb0ac1c86935f3293b1e