Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs/node tutorial/keygen clarification #145

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions docs/node_tutorials/node_setup_identifiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ Install `sqlite`
yarn add sqlite3 typeorm
```

Generate your secret key and save for later in a safe place

```bash
npx @veramo/cli config create-secret-key
```

Add a tsconfig.json to your project

```json
Expand All @@ -74,8 +80,9 @@ Add a tsconfig.json to your project

## Bootstrap Veramo

We bootstrap Veramo by creating a setup file and initializing the agent. Create a setup file in `src/veramo/setup.ts`
and import the following dependencies:
We bootstrap Veramo by creating a setup file and initializing the agent. Create a setup file in `src/veramo/setup.ts` and import the following dependencies:

Note: In this file we'll use that secret key that we generated in an earlier step, so have it handy.

```typescript
// Core interfaces
Expand Down Expand Up @@ -126,7 +133,7 @@ const DATABASE_FILE = 'database.sqlite'
// You will need to get a project ID from infura https://www.infura.io
const INFURA_PROJECT_ID = '<your PROJECT_ID here>'

// This will be the secret key for the KMS
// This will be the secret key for the KMS (replace this with your secret key)
const KMS_SECRET_KEY =
'< you can generate a key by running `npx @veramo/cli config create-secret-key` in a terminal>'
```
Expand Down
Loading