From c46ce8e828138210cf6e67a918aaf06593f3c39c Mon Sep 17 00:00:00 2001 From: Joshua Fernandes Date: Mon, 1 Jun 2020 14:22:49 +1000 Subject: [PATCH] adding in besu_privacy_marker_tx_signing_key_file --- README.md | 1 + defaults/main.yml | 2 ++ templates/config.toml.j2 | 3 +++ 3 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 9186813..97d1f1d 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,7 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults | `besu_privacy_enabled` | false | Enable privacy | | `besu_privacy_url` | "" | URL to contact Orion on including port eg: `http://localhost:8888` | | `besu_privacy_public_key_file` | ""| Path to Orion public key | +| `besu_privacy_marker_tx_signing_key_file` | "" | Path of the private key file used to sign Privacy Marker Transactions. If you do not specify this option, Besu signs each transaction with a different randomly generated key. | ### Example Playbook diff --git a/defaults/main.yml b/defaults/main.yml index 2d4a06e..148113d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -62,9 +62,11 @@ besu_host_whitelist: ["*"] besu_cmdline_args: [] besu_env_opts: [] +# privacy besu_privacy_enabled: "false" besu_privacy_url: "http://127.0.0.1:8888" besu_privacy_public_key_file: "" +besu_privacy_marker_tx_signing_key_file: "" # internal state to maintain idempotency diff --git a/templates/config.toml.j2 b/templates/config.toml.j2 index 4b4874a..ab05ac7 100644 --- a/templates/config.toml.j2 +++ b/templates/config.toml.j2 @@ -108,5 +108,8 @@ bootnodes=[{{besu_bootnodes|map('to_json')|join(',')}}] privacy-enabled=true privacy-url="{{besu_privacy_url}}" privacy-public-key-file="{{besu_privacy_public_key_file}}" +{% if besu_privacy_marker_tx_signing_key_file != "" %} +privacy-marker-transaction-signing-key-file="{{besu_privacy_marker_tx_signing_key_file}}" +{% endif %} {% endif %}