From 07390539df58283626a7c310ee31cf538329178a Mon Sep 17 00:00:00 2001 From: ktatarnikov Date: Wed, 3 Dec 2025 13:20:11 +0100 Subject: [PATCH 1/2] EDGE-372 development docs --- docs/development/setup.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/docs/development/setup.md b/docs/development/setup.md index 60fc856..b6147fc 100644 --- a/docs/development/setup.md +++ b/docs/development/setup.md @@ -52,7 +52,35 @@ Requirements: # build project cargo build - ``` + ``` + + Install [openssl](https://github.com/openssl/openssl) and generate private/public keys and configure them: + + ```sh + openssl genpkey -algorithm ed25519 -outform der -out "./private-key1.der" + openssl pkey -in "./private-key1.der" -inform DER -pubout -outform DER -out "./public-key1.der" + + echo -n $(xxd -plain -cols 32 -s -32 ./private-key1.der) > "./private-key1.hex" + echo -n $(xxd -plain -cols 32 -s -32 ./public-key1.der) > "./public-key1.hex" + + ``` + + echo -n $(xxd -plain -cols 32 -s -32 ./private-key1.der) > "./private-key-test.hex" + echo -n $(xxd -plain -cols 32 -s -32 ./public-key1.der) > "./public-key-test.hex" + + Note that this has to be done for all peers (clusters) and configured in the corresponding `kind-cluster.yaml`. + + ```yaml + + private_key_path: "./private-key1.hex" + + nodes: + # public keys and endpoints of other known peers except self + - public_key: "43b2bb39061bc3267e869303268a81734fb8767d3a17ee490813955bd734fd3a" + endpoints: + - "localhost:9102" + + ``` Run controller: ```sh From b79e82c7362e907578113a5a47cf21d968ed4f96 Mon Sep 17 00:00:00 2001 From: ktatarnikov Date: Wed, 3 Dec 2025 13:25:09 +0100 Subject: [PATCH 2/2] EDGE-372 minor fix --- docs/development/setup.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/development/setup.md b/docs/development/setup.md index b6147fc..1f770af 100644 --- a/docs/development/setup.md +++ b/docs/development/setup.md @@ -65,9 +65,6 @@ Requirements: ``` - echo -n $(xxd -plain -cols 32 -s -32 ./private-key1.der) > "./private-key-test.hex" - echo -n $(xxd -plain -cols 32 -s -32 ./public-key1.der) > "./public-key-test.hex" - Note that this has to be done for all peers (clusters) and configured in the corresponding `kind-cluster.yaml`. ```yaml