Skip to content

Commit

Permalink
cortex keytools added
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong committed Aug 5, 2019
1 parent a2c149b commit 72ca92d
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -81,3 +81,4 @@ plugins/
*.rdb
password
*.sh
keyfile.json
5 changes: 5 additions & 0 deletions Makefile
Expand Up @@ -45,6 +45,11 @@ bootnode:
@echo "Done building."
@echo "Run \"$(GOBIN)/bootnode\" to launch cortex bootnode."

keytools:
build/env.sh go run build/ci.go install ./cmd/keytools
@echo "Done building."
@echo "Run \"$(GOBIN)/keytools\" to launch cortex keytools."

torrent:
build/env.sh go run build/ci.go install ./cmd/torrentfs
@echo "Done building."
Expand Down
14 changes: 7 additions & 7 deletions cmd/ctxckey/README.md → cmd/keytools/README.md
@@ -1,41 +1,41 @@
ethkey
keytools
======

ethkey is a simple command-line tool for working with Ethereum keyfiles.
keytools is a simple command-line tool for working with Ethereum keyfiles.


# Usage

### `ethkey generate`
### `keytools generate`

Generate a new keyfile.
If you want to use an existing private key to use in the keyfile, it can be
specified by setting `--privatekey` with the location of the file containing the
private key.


### `ethkey inspect <keyfile>`
### `keytools inspect <keyfile>`

Print various information about the keyfile.
Private key information can be printed by using the `--private` flag;
make sure to use this feature with great caution!


### `ethkey signmessage <keyfile> <message/file>`
### `keytools signmessage <keyfile> <message/file>`

Sign the message with a keyfile.
It is possible to refer to a file containing the message.
To sign a message contained in a file, use the `--msgfile` flag.


### `ethkey verifymessage <address> <signature> <message/file>`
### `keytools verifymessage <address> <signature> <message/file>`

Verify the signature of the message.
It is possible to refer to a file containing the message.
To sign a message contained in a file, use the --msgfile flag.


### `ethkey changepassphrase <keyfile>`
### `keytools changepassphrase <keyfile>`

Change the passphrase of a keyfile.
use the `--newpasswordfile` to point to the new password file.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 72ca92d

Please sign in to comment.