The key must be exported in libp2p-protobuf-cleartext
format, which is the default.
To manage your keys, we use Kubo, the official IPFS implementation in Golang.
Export key using a Kubo client
To export your Kubo client key and convert it to base64 for import into our naming service, you can use the following sequence of commands:
-
Run the following CLI command to list the keys you own:
ipfs key list -
Run the following CLI command to export the key to a privkey.pem file:
ipfs key export myKey -o privkey.pemImportant -
Convert the file contents to base64 to import them into the naming service via the Scaleway CLI.
cat privkey.pem | base64
Import key to Kubo client
After exporting your key from our service, it will be provided to you in base64
format. Follow these steps to import the key into your Kubo client.
-
Run the following CLI command to decode your
base64
key into a binary file:base64 -d myKeyFileBase64 > privkey.pem -
Run the following CLI command to import your decoded key into your Kubo client:
ipfs key import myKey privkey.pem