Last active
March 27, 2022 20:17
-
-
Save joemccann/73367b869723f3c574002503dd3feaab to your computer and use it in GitHub Desktop.
Convert Solana private key to array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bs58 from 'bs58' | |
const bytes = bs58.decode('PRIVATE_KEY_HASH') | |
console.log(Array.from(bytes)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
npm i -g ts-node && ts-node convert.ts