File tree Expand file tree Collapse file tree 2 files changed +6
-33
lines changed Expand file tree Collapse file tree 2 files changed +6
-33
lines changed Original file line number Diff line number Diff line change @@ -159,20 +159,6 @@ Hint: You may wish to remove the existing attestations and their signatures by
159
159
EOF
160
160
}
161
161
162
- # Given a document with unix line endings (just <LF>) in stdin, make all lines
163
- # end in <CR><LF> and make sure there's no trailing <LF> at the end of the file.
164
- #
165
- # This is necessary as cleartext signatures are calculated on text after their
166
- # line endings are canonicalized.
167
- #
168
- # For more information:
169
- # 1. https://security.stackexchange.com/a/104261
170
- # 2. https://datatracker.ietf.org/doc/html/rfc4880#section-7.1
171
- #
172
- rfc4880_normalize_document () {
173
- sed ' s/$/\r/' | head -c -2
174
- }
175
-
176
162
echo " Attesting to build outputs for version: '${VERSION} '"
177
163
echo " "
178
164
@@ -188,7 +174,6 @@ mkdir -p "$outsigdir"
188
174
cat " ${noncodesigned_fragments[@]} " \
189
175
| sort -u \
190
176
| sort -k2 \
191
- | rfc4880_normalize_document \
192
177
> " $temp_noncodesigned "
193
178
if [ -e noncodesigned.SHA256SUMS ]; then
194
179
# The SHA256SUMS already exists, make sure it's exactly what we
@@ -216,7 +201,6 @@ mkdir -p "$outsigdir"
216
201
cat " ${sha256sum_fragments[@]} " \
217
202
| sort -u \
218
203
| sort -k2 \
219
- | rfc4880_normalize_document \
220
204
> " $temp_all "
221
205
if [ -e all.SHA256SUMS ]; then
222
206
# The SHA256SUMS already exists, make sure it's exactly what we
Original file line number Diff line number Diff line change @@ -199,26 +199,13 @@ popd
199
199
200
200
### After 3 or more people have guix-built and their results match:
201
201
202
- Combine ` all.SHA256SUMS ` and ` all.SHA256SUMS.asc ` into a clear-signed
203
- ` SHA256SUMS.asc ` message:
204
-
205
- ``` sh
206
- echo -e " -----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA256\n\n$( cat all.SHA256SUMS) \n$( cat filename.txt.asc) " > SHA256SUMS.asc
207
- ```
208
-
209
- Here's an equivalent, more readable command if you're confident that you won't
210
- mess up whitespaces when copy-pasting:
202
+ Combine the ` all.SHA256SUMS.asc ` file from all signers into ` SHA256SUMS.asc ` :
211
203
212
204
``` bash
213
- cat << EOF > SHA256SUMS.asc
214
- -----BEGIN PGP SIGNED MESSAGE-----
215
- Hash: SHA256
216
-
217
- $( cat all.SHA256SUMS)
218
- $( cat all.SHA256SUMS.asc)
219
- EOF
205
+ cat " $VERSION " /* /all.SHA256SUMS.asc > SHA256SUMS.asc
220
206
```
221
207
208
+
222
209
- Upload to the bitcoincore.org server (` /var/www/bin/bitcoin-core-${VERSION} ` ):
223
210
1 . The contents of ` ./bitcoin/guix-build-${VERSION}/output ` , except for
224
211
` *-debug* ` files.
230
217
as save storage space * do not upload these to the bitcoincore.org server,
231
218
nor put them in the torrent* .
232
219
233
- 2 . The combined clear-signed message you just created ` SHA256SUMS.asc `
220
+ 2 . The ` SHA256SUMS ` file
221
+
222
+ 3 . The ` SHA256SUMS.asc ` combined signature file you just created
234
223
235
224
- Create a torrent of the ` /var/www/bin/bitcoin-core-${VERSION} ` directory such
236
225
that at the top level there is only one file: the ` bitcoin-core-${VERSION} `
You can’t perform that action at this time.
0 commit comments