about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorlogin000 <34250284+login000@users.noreply.github.com>2022-07-03 16:36:53 +1000
committerGitHub <noreply@github.com>2022-07-03 16:36:53 +1000
commit6c68da10520094c08329b0cccbcb19acc2b8ebd2 (patch)
tree2ccfbdb99791e785466466b43ee1718f142dc3bd
parenta4bd4f629e145315183b420d36e38707bb735037 (diff)
downloadtcoin-6c68da10520094c08329b0cccbcb19acc2b8ebd2.tar.gz
Updated README.md (new pcoin_keys directory)
Updated README.md to correct the documentation for how a new program account should be created.
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index f45be4a..1ab90b2 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ Currency simulator on tilde.town and other tildeboxes on tildeverse.org
     * `d`: a host name (in quotation marks, e.g., d = "tilde.town") that will appear in `tcoin --help`.
 ## Instructions to create program accounts
 1. Run `b/npcoin a` as the service user in the parent directory of the `tcoin` folder, i.e., if the `tcoin` folder is in directory with absolute path `x`, then run `cd x; b/npcoin a`. Here, `a` is the name of the program account you want to create, and `b` is the absolute path to the `tcoin` repository that contains the `npcoin` script. Program accounts should start with a capital letter (e.g., `My_program_account` or `My-program-account`).
-2. Add a line (ending with one newline character) to `tcoin/secrets/pcoin_keys` in the following format (assuming the name of the program is `My_program_account`):
-`My_program_account <a 64-character random alphanumeric (either all lowercase, or mixed-case will also work) string>`
+2. Create a file in the `tcoin/secrets/pcoin_keys/` directory with the following name: `My_program_account.txt` (assuming the name of the program is `My_program_account`) and add the following newline-terminated line to it:
+`<a 64-character random alphanumeric (either all lowercase, or mixed-case will also work) string>`
 3. The string will be the key that the program uses to access and operate its account, and must be given to the requester of the program account securely (and currently, manually). I usually use random.org to generate these 64-character strings because I don't trust pseudorandom number generators (even if they are cryptographically-secure pseudorandom number generators). Anybody who can guess a key can use that program's account.
 4. Program-account creation is currently not automated because of concerns about name-squatting and similarly-named program names.