LogoLogo
PAO DocsCommunity DocsDeveloper DocsPeerplays.com
  • Infrastructure Documentation
  • The Basics
    • Peerplays Node Types
    • Hardware Requirements
    • Obtaining private keys for cli_wallet
    • Using the CLI Wallet
      • CLI Wallet Fundamentals
      • CLI Commands for All Nodes
      • CLI Commands for Witnesses
      • CLI Commands for SONs
        • Updated CLI commands for SON voting
      • Deriving Keys using CLI Wallet
    • Auto-Starting a Node
    • Backup Servers
    • Obtaining Your First Tokens
    • Updating a Witness Node
    • How to create a Peerplays Account?
  • Advanced Topics
    • Private Testnets
      • Peerplays QA environment
      • Private Testnets - Manual Install
    • Reverse Proxy for Enabling SSL
    • Enabling Elasticsearch on a Node
    • Introduction to Faucet
  • Witnesses
    • What is a Witness node?
    • Installation Guides
      • Build and Install
      • Docker Install
      • GitLab Artifact Install
    • How to become a block producing witness?
    • Other Ways to configure a witness node
      • Peerplays API nodes & Installation Guide
      • Configuring Witness Node as Delayed Node
    • What's Next?
  • Sidechain Operator Nodes (SONs)
    • Installation Guides
      • Manual Install
      • Docker Install
      • SON Configuration - Version 1.5.19
      • SON configuration - Version 1.6.0
      • Bitcoin-SONs Sanity Checks
      • ETH-SONs Configuration & Installation
      • Existing SON node upgrade
  • Bookie Oracle Suite (BOS)
    • Introduction to BOS
    • BOS Installation
      • Installing MongoDB
      • Installing Redis
      • Configuration of bos-auto
      • Spinning Up bos-auto
    • BookieSports
      • Installing Bookiesports
      • Synchronizing BOS with BookieSports
      • BookieSports Module Contents
        • Sub Modules
      • Schema
      • Naming Scheme
    • Manual Intervention Tool (MINT)
      • Installing MINT
      • Introduction
  • DATA PROXIES
    • Introduction to Data Proxies
    • How Data Proxies Work
    • Data Proxy Set Up
  • COUCH POTATO
    • Installation
    • Functional Requirements
      • Flow Diagrams
      • Home Page
      • Create Account
      • Dashboard
        • Header
        • Sports Tabs
        • League Tabs
        • Calendar
        • Notifications
        • Replay
        • Account Menu
      • Game Selector
      • Change Password
    • Help
      • User Guide
        • Introduction
        • Home Page
        • Creating an Account
        • Dashboard
          • Replay
          • Account Menu
            • Change Password
        • Game Selector
    • Database
      • Schema
      • Objects
        • Tables
        • Views
    • API
      • Using the API
      • API Reference
        • Objects
        • Error Codes
      • BOS Schema
    • Proxy Payment Considerations
  • Other Documentation
    • Peerplays Home
    • Community Docs
    • Developer Docs
    • Site Reliability Engineering
Powered by GitBook
On this page
  • 1. Set a password and unlock the wallet
  • 2. Generate OWNER private keys for the cli_wallet and import them
  • 3. Generate ACTIVE private keys for the cli_wallet and import them

Was this helpful?

Export as PDF
  1. The Basics
  2. Using the CLI Wallet

Deriving Keys using CLI Wallet

PreviousUpdated CLI commands for SON votingNextAuto-Starting a Node

Last updated 1 year ago

Was this helpful?

There are three types of keys on chain and it can be generated using the CLI wallet. The types of keys are:

  1. Active

  2. Owner

  3. Memo

Follow the below steps to generate keys in the wallet

1. Set a password and unlock the wallet

In a new command line window, we can access the cli_wallet program after all the blocks have been downloaded from the chain. Note that "your-password-here" is a password that you're creating for the cli_wallet and doesn't necessarily have to be the password you used while creating Peerplays account.

cli_wallet
set_password your-password-here
unlock your-password-here

The CLI wallet will show unlocked >>> when successfully unlocked.

A list of CLI wallet commands is available here:

2. Generate OWNER private keys for the cli_wallet and import them

The below command will return an array with your owner key in the form of ["PPYxxx", "xxxx"] ["TESTxxx", "xxx"].

Note that the "created-username" and "created-password" used here are the username and password from the Peerplays-DEX account created.

get_private_key_from_password created-username owner created-password

The second value in the returned array is the private key of your owner key. Now we'll import that into the cli_wallet.

import_key "created-username" SECONDVALUEFROMLASTCOMMAND

3. Generate ACTIVE private keys for the cli_wallet and import them

The below command will return an array with your active key in the form of ["PPYxxx", "xxxx"] / ["TESTxxx", "xxx"].

Note that the "created-username" and "created-password" used here are the username and password from the Peerplays-DEX account

get_private_key_from_password created-username active created-password

The second value in the returned array is the private key of your active key. Now we'll import that into the cli_wallet.

import_key "created-username" SECONDVALUEFROMLASTCOMMAND

The keys that begin with "PPY"/"TEST" are the public keys.

https://devs.peerplays.tech/api-reference/wallet-api/wallet-calls