Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Create a way for people to migrate peerid from go-ipfs #5

Closed
lidel opened this issue Nov 26, 2021 · 4 comments
Closed

Create a way for people to migrate peerid from go-ipfs #5

lidel opened this issue Nov 26, 2021 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@lidel
Copy link
Member

lidel commented Nov 26, 2021

People use go-ipfs for v1, and that goes away (ipfs/kubo#8522),
we should document how one can migrate relay (peerid) from go-ipfs to relayd.

@lidel lidel added the documentation Improvements or additions to documentation label Nov 26, 2021
@vyzo
Copy link
Contributor

vyzo commented Nov 26, 2021

this should br straightforward, the identity file contains just the bytes of the private key.

Should we create a utility to take it from the ipfs datastore? Or is there an ipfs command we can use to get it? If there is an easy way to get it without code, then we can simply document the command line to use.

@TheDiscordian
Copy link

@vyzo you can export the key used in the peerID from the ipfs daemon via ipfs key export self:

ipfs key export --help
USAGE
  ipfs key export <name> - Export a keypair

SYNOPSIS
  ipfs key export [--output=<output> | -o] [--] <name>

ARGUMENTS

  <name> - name of key to export

OPTIONS

  -o, --output  string - The path where the output should be stored.

DESCRIPTION

  Exports a named libp2p key to disk.
  
  By default, the output will be stored at './<key-name>.key', but an alternate
  path can be specified with '--output=<path>' or '-o=<path>'.

@vyzo
Copy link
Contributor

vyzo commented May 18, 2022

sure, care for a pr?

@lidel lidel closed this as completed Sep 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants
@vyzo @lidel @TheDiscordian and others