Skip to content

lawalletio/recovery

Repository files navigation

Recovery module for lawallet

This module offers the capability of recovering access to a lawallet account in case of losing acces to the private key of the account. It does so by requesting a delegation from the account that want to be recoverable and a communication channel (like mail) where it will ask for confirmation in case of recovery request.

Usage

Use this as a template from github and follow the next steps before using:

  1. Use the correct nvm version
nvm use
  1. Copy the .env.example
cp .env.example .env
  1. Generate a nostr key pair and put it in the variables NOSTR_PRIVATE_KEY and NOSTR_PUBLIC_KEY

Installation

pnpm i

Testing

pnpm test

Linting and prettier

pnpm lint
pnpm prettier

Development Server

pnpm dev

Docker Server

docker compose up