1
0
mirror of https://github.com/danog/toncontest.git synced 2024-11-26 20:15:01 +01:00
toncontest/wallet/gen-pub.fif

15 lines
386 B
Plaintext
Raw Permalink Normal View History

2019-10-06 20:50:38 +02:00
"TonUtil.fif" include
2019-10-06 20:51:57 +02:00
{ ."usage: " @' $0 type ." <privkey>" cr
2019-10-06 20:50:38 +02:00
."Create public key files from private keys; if <privkey> doesn't exist, it will be created." cr cr
1 halt
} : usage
2019-10-06 20:51:57 +02:00
$# 1 < ' usage if
2019-10-06 20:50:38 +02:00
$1 +".pk" load-generate-keypair drop
2019-10-08 19:45:25 +02:00
dup $1 +".pubkey" B>file
2019-10-06 20:50:38 +02:00
."Wrote private key to " $1 +".pk" type cr
2019-10-08 19:45:25 +02:00
."Wrote public key to " $1 +".pubkey" type cr cr
."Public key: " Bx. cr cr