github.com/core-coin/go-core/v2@v2.1.9/cmd/xcbkey/README.md (about)

     1  xcbkey
     2  ======
     3  
     4  xcbkey is a simple command-line tool for working with Core keyfiles.
     5  
     6  
     7  # Usage
     8  
     9  ### `xcbkey generate`
    10  
    11  Generate a new keyfile.
    12  If you want to use an existing private key to use in the keyfile, it can be 
    13  specified by setting `--privatekey` with the location of the file containing the 
    14  private key.
    15  
    16  
    17  ### `xcbkey inspect <keyfile>`
    18  
    19  Print various information about the keyfile.
    20  Private key information can be printed by using the `--private` flag;
    21  make sure to use this feature with great caution!
    22  
    23  
    24  ### `xcbkey signmessage <keyfile> <message/file>`
    25  
    26  Sign the message with a keyfile.
    27  It is possible to refer to a file containing the message.
    28  To sign a message contained in a file, use the `--msgfile` flag.
    29  
    30  
    31  ### `xcbkey verifymessage <address> <signature> <message/file>`
    32  
    33  Verify the signature of the message.
    34  It is possible to refer to a file containing the message.
    35  To sign a message contained in a file, use the --msgfile flag.
    36  
    37  
    38  ### `xcbkey changepassword <keyfile>`
    39  
    40  Change the password of a keyfile.
    41  use the `--newpasswordfile` to point to the new password file.
    42  
    43  
    44  ## Passwords
    45  
    46  For every command that uses a keyfile, you will be prompted to provide the 
    47  password for decrypting the keyfile.  To avoid this message, it is possible
    48  to pass the password by using the `--passwordfile` flag pointing to a file that
    49  contains the password.
    50  
    51  ## JSON
    52  
    53  In case you need to output the result in a JSON format, you shall by using the `--json` flag.