add js formatting to sample code

This commit is contained in:
steliosrammos 2022-04-28 16:21:20 +02:00 committed by fiatjaf
parent 4b9e9d1232
commit 759997657f
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ A special event with kind `4`, meaning "encrypted direct message". It is suppose
Code sample for generating such an event in JavaScript:
```
```js
import crypto from 'crypto'
import * as secp from 'noble-secp256k1'