add js formatting to sample code
This commit is contained in:
parent
4b9e9d1232
commit
759997657f
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue