NFT Gen 2 Tech Doc
  • Introduction
  • Overview
    • NFT Data Chain
    • Cosmos SDK
    • Modules
      • Core Module
      • Oracle
  • Integration
    • Creating Schema
    • System Mode
      • Minting
      • Sending Action
    • User Mode
      • Minting
      • Sending Action
  • Data-chain Base URI
  • Getting Started
    • Installation (Golang)
    • Getting Started
      • Download Binary
      • Developer Resources
      • Binary Overview
      • Create Account
      • Faucet
      • Deploy NFT Gen2
      • Perform Action of NFT Gen2
      • Update NFT Schema
      • Script
    • SDK Package for NodeJs
      • Example Resources
      • Deploy NFT Gen2
      • Perform Action of NFT Gen2
      • Update NFT Schema
    • SDK for GO
      • Requirements
      • Installation
      • Usage
      • Preparing Key for Authentication
      • Supported Messages and Queries
      • Examples
    • Six Protocol Developer Community
Powered by GitBook
On this page
  • From CLI
  • From seed phrase
  1. Getting Started
  2. SDK for GO

Preparing Key for Authentication

From CLI

Use "sixd" CLI to export the key from your keyring

sixd keys export mykey

Passphrase is required to encrypt the exported private key

and after setup passphrase the information will look like this:

-----BEGIN TENDERMINT PRIVATE KEY-----
type: secp256k1
kdf: bcrypt
salt: 442D382328B89599F99DB688AF91B8BB

EThQx4G+uO2xehgIv0GwmhnCEIA/beeMVXLj0w6/x6Ryecdrkuu3yPzdvh+VX/Ac
UJigQWkwnVPH0xVU2AnFKN4f3cBT6D2ldNfAEQ8=
=WOlG
-----END TENDERMINT PRIVATE KEY-----

This is called an armored key and together with the passphrase are used in SIX Protocol Go SDK for authentication.

From seed phrase

You can import your seed phrase into keyring:

sixd keys add --recover <your-account-name>

After enter a bip39 mnemonic you can export by following the previous steps to get armored (encrypted) private file and passphrase for SDK of SIX Protocol Go version.

PreviousUsageNextSupported Messages and Queries

Last updated 2 years ago