Created
October 23, 2019 17:49
-
-
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
This file contains hidden or 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
"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