Skip to content

Commit

Permalink
Merge pull request #392 from verbiricha/patch-1
Browse files Browse the repository at this point in the history
fix typos in README
  • Loading branch information
alexgleason authored Apr 12, 2024
2 parents 849a2ac + 88247e5 commit b349ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```

Expand Down

0 comments on commit b349ee5

Please sign in to comment.