Merge pull request #392 from verbiricha/patch-1

fix typos in README
This commit is contained in:
Alex Gleason 2024-04-12 17:57:49 -05:00 committed by GitHub
commit b349ee577d
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)
```