+
+
Meshcore Private Keys
+
+ These keys will be used to decrypt messages. Your keys are never shared with the server, so your messages remain secure.
+
+
+ {(config.meshcoreKeys || []).map((key, idx) => {
+ const keyError = validateMeshcoreKey(key.privateKey);
+ return (
+
+
+ {
+ const updated = [...(config.meshcoreKeys || [])];
+ updated[idx] = { ...updated[idx], channelName: e.target.value };
+ setConfig({ ...config, meshcoreKeys: updated });
+ }}
+ />
+ ID: {getChannelIdFromKey(key.privateKey)}
+
+
+ {
+ const updated = [...(config.meshcoreKeys || [])];
+ updated[idx] = { ...updated[idx], privateKey: e.target.value };
+ setConfig({ ...config, meshcoreKeys: updated });
+ }}
+ />
+
+
+ {keyError && (
+
{keyError}
+ )}
+
+ );
+ })}
+
+