π Prerequisites
- Generated Ed25519 key pair from the key generator
- MeshCore device (companion or repeater)
- MeshCore mobile app installed on your phone or MeshCore Web App
- USB-C cable for connecting to your device
π§ Select Your Setup
Choose your setup to see the appropriate instructions:
π§ Companion Device Instructions
Follow these steps to apply your custom key to a companion device:
Connect to Your Device
Connect your phone to the MeshCore device using a USB-C cable or Bluetooth.
Open MeshCore App
Launch the MeshCore mobile app on your phone and connect to your device.
Access Settings
Tap the Settings gear icon in the top-right corner of the app.
Manage Identity Key
Scroll down and tap "Manage Identity Key" in the settings menu.
Enter Private Key
Copy your private key from the key generator and paste it into the text box. Make sure to copy the entire 128-character key.
Import the Key
Tap "Import Private Key" to apply the key to your device.
Save Changes
Tap the checkmark β in the top-right corner to save your changes. This step is crucial - the key won't be applied until you save.
Verify the Change
Return to the main screen and verify that your new public key is displayed. The first two characters should match your desired prefix.
π» Repeater + Computer Instructions
If you can connect your repeater directly to a computer, this is the fastest method:
Connect via USB Serial
Connect your repeater device to your computer via USB serial connection.
Access the Console
Open the MeshCore Web Console or use any terminal application to connect to your device.
Set the Private Key
Run the following command in the console:
Replace <your_private_key> with your 128-character private key from the key generator.
Verify the Change
You can verify the key change by checking the device's public key display in settings.
- No need to flash companion firmware
- Change the key on the spot without switching firmware
- Quick if youβre comfortable using a console
- Works with MeshCore web console or any terminal app
π‘ Repeater + Companion Instructions
You can change the private key on a repeater remotely over LoRa using the MeshCore app and the set prv.key command. Follow these steps:
Select Repeater from Contact List
Open the MeshCore app and select the repeater from your Contact List.
Enter Password and Log into Repeater
Enter the repeater password and log in to access the repeater.
Open Command Line
Click on the Command Line option at the bottom of the repeater info screen.
Set the Private Key
Enter the following command and press Enter:
Replace <hex> with your 128-character private key from the key generator.
Reboot the Repeater
Reboot the repeater after running set prv.key <hex> for the new private key to take effect.
π JSON Import Method (Alternative)
If you downloaded the JSON file from the key generator, you can use this alternative method:
Access Import Config
In the MeshCore app settings, tap "Import Config" instead of "Manage Identity Key".
Select JSON File
Click Select File to open your OS's file picker. Choose your downloaded JSON file from the file picker. The file should be named something like meshcore_FA_1234567890.json.
Import Configuration
Tap "Import Config" to import the keys from your JSON file.
Import Success
You'll see a success notification confirming that the configuration has been imported.
Verify the Import
Return to the main screen and verify that your new public key is displayed. The first two characters should match your desired prefix.
π Troubleshooting
Common Issues
- Key not appearing: Make sure you tapped the checkmark β to save changes
- Wrong key format: Ensure you're copying the entire 128-character private key
- App not detecting device: Try disconnecting and reconnecting the USB cable
- Firmware flash fails: Try a different USB cable or USB port
- Key import fails: Verify the key was generated correctly and try again
Verification Steps
- Check that the public key displayed matches your generated key
- Verify the first two characters match your desired prefix
- Test the connection to ensure the device is working properly
- Check the MeshCore network to see your device with the new identifier
π Need Help?
If you encounter issues not covered in this guide: