Skip to content

Instantly share code, notes, and snippets.

@gr8den
Created October 23, 2019 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gr8den/37bd1dc914c2ad90fb265f60db820b96 to your computer and use it in GitHub Desktop.
Save gr8den/37bd1dc914c2ad90fb265f60db820b96 to your computer and use it in GitHub Desktop.
Read (or generate) private key from file and print human-readable public key for creating new wallet
"TonUtil.fif" include
{ ."usage: " @' $0 type ." <your.pk>" cr
cr
."Read (or generate) private key from file and print human-readable public key for creating new wallet" cr
1 halt
} : usage
$# 1 <> ' usage if
0 =: wc // any workchain
6 =: flag // any flag
$1 load-generate-keypair
drop // drop private key
256 B>u@ =: uPub
."Your pub key for creating new wallet:" cr
wc uPub flag .Addr cr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment