From bc0c6a467ebf261e6d3defeb8fc70f3a70eab9a9 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 6 Oct 2019 20:51:57 +0200 Subject: [PATCH] Improve --- .gitignore | 1 + wallet/gen-pub.fif | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 441740e..2ed70a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ ton-db-dir *.pk +*.pubkey *.addr *.boc diff --git a/wallet/gen-pub.fif b/wallet/gen-pub.fif index 4a43f67..ea25385 100644 --- a/wallet/gen-pub.fif +++ b/wallet/gen-pub.fif @@ -1,14 +1,14 @@ "TonUtil.fif" include -{ ."usage: " @' $0 type ." " cr +{ ."usage: " @' $0 type ." " cr ."Create public key files from private keys; if doesn't exist, it will be created." cr cr 1 halt } : usage -$# 2 < ' usage if +$# 1 < ' usage if $1 +".pk" load-generate-keypair drop -$2 +".pubkey" B>file +$1 +".pubkey" B>file ."Wrote private key to " $1 +".pk" type cr -."Wrote public key to " $2 +".pubkey" type cr \ No newline at end of file +."Wrote public key to " $1 +".pubkey" type cr \ No newline at end of file