Skip to content

Commit

Permalink
Merge pull request #15 from susumuota/feat-relay
Browse files Browse the repository at this point in the history
docs: fix format.
  • Loading branch information
susumuota committed Apr 5, 2023
2 parents 2c660b9 + eaa44d1 commit cbd9e1b
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,7 @@ console.log({ sk, pk });
### Creating, signing and verifying events

```javascript
import {
validateEvent,
verifySignature,
signEvent,
getEventHash,
generatePrivateKey,
getPublicKey,
} from 'nostrain';
import { validateEvent, verifySignature, signEvent, getEventHash, generatePrivateKey, getPublicKey } from 'nostrain';

const privateKey = generatePrivateKey();

Expand Down Expand Up @@ -145,7 +138,7 @@ relay.close();
To use this on Node.js you first must install `websocket-polyfill` and import it:

```javascript
import 'websocket-polyfill'
import 'websocket-polyfill';
```

### Interacting with multiple relays
Expand Down

0 comments on commit cbd9e1b

Please sign in to comment.