fix typos in README

This commit is contained in:
Alejandro 2024-03-27 18:58:23 +01:00 committed by GitHub
parent e5cda3509c
commit 88247e56c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -28,9 +28,9 @@ let pk = getPublicKey(sk) // `pk` is a hex string
To get the secret key in hex format, use
```js
import { bytestohex, hexToBytes } from '@noble/hashes/utils' // already an installed dependency
import { bytesToHex, hexToBytes } from '@noble/hashes/utils' // already an installed dependency
let skHex = bytestohex(sk)
let skHex = bytesToHex(sk)
let backToBytes = hexToBytes(skHex)
```