@@ -15,14 +15,14 @@ import (
15
15
16
16
var walletDecryptCmd = & cobra.Command {
17
17
Use : "decrypt" ,
18
- Short : "Decrypt text with passphase " ,
19
- Long : `Decrypt text with passphase ` ,
18
+ Short : "Decrypt text with passphrase " ,
19
+ Long : `Decrypt text with passphrase ` ,
20
20
Args : cobra .MinimumNArgs (0 ),
21
21
Run : func (cmd * cobra.Command , args []string ) {
22
- passphase , _ := cmd .Flags ().GetString ("passphase " )
22
+ passphrase , _ := cmd .Flags ().GetString ("passphrase " )
23
23
text , _ := cmd .Flags ().GetString ("text" )
24
24
25
- decrypted , err := zcncore .Decrypt (passphase , text )
25
+ decrypted , err := zcncore .Decrypt (passphrase , text )
26
26
if err != nil {
27
27
fmt .Println (err )
28
28
}
@@ -92,6 +92,6 @@ func init() {
92
92
signCmd .Flags ().String ("data" , "" , "give data for signing, Default will be clientID" )
93
93
94
94
rootCmd .AddCommand (walletDecryptCmd )
95
- walletDecryptCmd .Flags ().String ("passphase " , "" , "Passphase to decrypt text" )
95
+ walletDecryptCmd .Flags ().String ("passphrase " , "" , "Passphrase to decrypt text" )
96
96
walletDecryptCmd .Flags ().String ("text" , "" , "Encrypted text" )
97
97
}
0 commit comments