Skip to content

Instantly share code, notes, and snippets.

@joemccann
Last active March 27, 2022 20:17
Show Gist options
  • Save joemccann/73367b869723f3c574002503dd3feaab to your computer and use it in GitHub Desktop.
Save joemccann/73367b869723f3c574002503dd3feaab to your computer and use it in GitHub Desktop.
Convert Solana private key to array
import bs58 from 'bs58'
const bytes = bs58.decode('PRIVATE_KEY_HASH')
console.log(Array.from(bytes))
@joemccann
Copy link
Author

npm i -g ts-node && ts-node convert.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment