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

View File

@@ -28,9 +28,9 @@ let pk = getPublicKey(sk) // `pk` is a hex string
To get the secret key in hex format, use To get the secret key in hex format, use
```js ```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) let backToBytes = hexToBytes(skHex)
``` ```