Browse Source

instructions for testing, including multiple identifiers

kb/add-usage-guide
Trent Larson 2 years ago
parent
commit
a20e63a57e
  1. 15
      README.md

15
README.md

@ -22,7 +22,8 @@ npm run lint
### Clear data & restart
Clear cache for localhost, then go to http://localhost:8080/start (because it'll regenerate if you start on the `/account` page).
Clear cache for localhost, then go to http://localhost:8080/start
(because it'll generate a new one automatically if you start on the `/account` page).
### Test key contents
@ -30,7 +31,8 @@ See [this page](openssl_signing_console.rst)
### Register new user on test server
New users require registration. This can be done with a claim payload like this by an existing user:
New users require registration. This can be done with a claim payload like this
by an existing user:
```
const vcClaim = {
@ -42,18 +44,23 @@ New users require registration. This can be done with a claim payload like this
};
```
On the test server, User #0 has rights to register others, so you can start playing one of two ways:
On the test server, User #0 has rights to register others, so you can start
playing one of two ways:
- Import the keys for the test User `did:ethr:0x000Ee5654b9742f6Fe18ea970e32b97ee2247B51` by importing this seed phrase:
`seminar accuse mystery assist delay law thing deal image undo guard initial shallow wrestle list fragile borrow velvet tomorrow awake explain test offer control`
(Other test users are found [here](https://github.com/trentlarson/endorser-ch/blob/master/test/util.js).)
- Alternatively, register someone else under User #0 on the `/account` page:
- Alternatively, register someone else under User #0 automatically:
* In the `src/views/AccountViewView.vue` file, uncomment the lines referring to "testServerRegisterUser".
* Visit the `/account` page.
### Create multiple identifiers
Go to /import-account and import a new one. Then switch identifiers on the
bottom of the Your Identity page.
### Create keys with alternate tools

Loading…
Cancel
Save