Skip to content

Commit 41ec90e

Browse files
committed
Clean up obtain_release_key and add keys.txt link
1 parent cdbe711 commit 41ec90e

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

_includes/templates/download.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
{% capture FILE_PREFIX %}bitcoin-{{CURRENT_RELEASE}}{% endcapture %}
1111
{% capture SIGNING_KEY_FINGERPRINT_EXPLODED %}{% include fingerprint-split.html hex=page.example_builder_key %}{% endcapture %}
1212
{% capture SHORT_BUILDER_KEY %}{{page.example_builder_key | slice: 0, 4}} {{ page.example_builder_key | slice: 4, 4 }}...{% endcapture %}
13+
{% capture BUILDER_KEYS_TXT_URL %}{{page.builder_keys_url}}/keys.txt{% endcapture %}
14+
15+
{% capture OBTAIN_RELEASE_KEY %}
16+
{{page.obtain_release_key |
17+
replace: '$(BUILDER_KEYS_URL)', page.builder_keys_url |
18+
replace: '$(EXAMPLE_BUILDERS_LINE)', page.example_builders_line |
19+
replace: '$(BUILDER_KEYS_TXT_URL)', BUILDER_KEYS_TXT_URL}}
20+
{% endcapture %}
21+
1322
{% assign GPG_DOWNLOAD_URL = "https://www.gnupg.org/download/index.en.html#binary" %}
1423
{% assign GPG_MACOS_DOWNLOAD_URL = "https://gpgtools.org/" %}
1524
{% assign GPG_WINDOWS_DOWNLOAD_URL = "https://gpg4win.org/download.html" %}
@@ -123,7 +132,7 @@ <h2 style="text-align: center" id="{{page.verify_download | slugify}}">{{page.ve
123132
{{page.gpg_download_other}}
124133
<a href="{{GPG_DOWNLOAD_URL}}">{{page.gpg_download_options}}</a></p></li>
125134

126-
<li><p>{{page.obtain_release_key | replace: '$(BUILDER_KEYS_URL)', page.builder_keys_url | replace: '$(EXAMPLE_BUILDERS_LINE)', page.example_builders_line}}</p>
135+
<li><p>{{OBTAIN_RELEASE_KEY}}</p>
127136

128137
<pre class="highlight"><code>{{GPG}}{{site.strings.gpg_keyserver}} --recv-keys {{page.example_builder_key}}</code></pre>
129138

_posts/en/pages/2017-01-01-download.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,16 @@ example_builders_line: "E777299FC265DD04793070EB944D35F9AC3DB76A Michael Ford (f
8484
builder_keys_url: "https://github.com/bitcoin/bitcoin/tree/master/contrib/builder-keys"
8585

8686
obtain_release_key: >
87-
Bitcoin releases are signed by a number of individuals, each with a unique public
87+
<p>Bitcoin releases are signed by a number of individuals, each with a unique public
8888
key. In order to recognize the validity of signatures, you must use GPG to load these
8989
public keys locally. You can find many developer keys listed in the <a
9090
href='$(BUILDER_KEYS_URL)'>bitcoin/bitcoin repository</a>, which you can then load
91-
into your GPG key database. For example, if you saw the line <pre
92-
class='highlight'><code>$(EXAMPLE_BUILDERS_LINE)</code></pre>you could load that key
93-
using this command:
91+
into your GPG key database.</p>
92+
93+
<p>For example, given the <a href='$(BUILDER_KEYS_TXT_URL)'><code>
94+
builders-key/keys.txt</code></a> line
95+
<pre class='highlight'><code>$(EXAMPLE_BUILDERS_LINE)</code></pre>you could load that
96+
key using this command:</p>
9497
9598
choosing_builders: >
9699
It is recommended that you choose a few individuals from this list who you find

0 commit comments

Comments
 (0)