> For the complete documentation index, see [llms.txt](https://sixnetwork.gitbook.io/nft-gen-2-tech-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sixnetwork.gitbook.io/nft-gen-2-tech-doc/getting-started/sdk-for-go/preparing-key-for-authentication.md).

# Preparing Key for Authentication

## From CLI

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

```bash
sixd keys export mykey
```

Passphrase is required to encrypt the exported private key

and after setup passphrase the information will look like this:

```bash
-----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:&#x20;

```bash
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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sixnetwork.gitbook.io/nft-gen-2-tech-doc/getting-started/sdk-for-go/preparing-key-for-authentication.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
