Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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