This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
### Verify Binaries | ||
|
||
This document and associated scripts are derivations of the approach Bitcoin Core uses (https://github.com/bitcoin/bitcoin/edit/master/contrib/verifybinaries). | ||
|
||
#### Preparation: | ||
|
||
Make sure you obtain the proper release signing key and verify the fingerprint with several independent sources. | ||
|
||
```sh | ||
$ gpg --fingerprint "Brian Hoffman [Open Bazaar] <brian@openbazaar.org>" | ||
pub 2048R/438FA17C 2014-05-05 [expires: 2018-05-05] | ||
Key fingerprint = F186 A6A4 CF94 98AB E58F 53B9 DFEE B5A2 438F A17C | ||
uid Brian Hoffman [Open Bazaar] <brian@openbazaar.org> | ||
``` | ||
|
||
#### Usage: | ||
|
||
The verifyBinaries.sh script attempts to download the signature file `SHA256SUMS.<version>.asc` from https://openbazaar.org. | ||
|
||
It first checks if the signature passes, and then downloads the files specified in the file, and checks if the hashes of these files match those that are specified in the signature file. | ||
|
||
The script returns 0 if everything passes the checks. It returns 1 if either the signature check or the hash check doesn't pass. If an error occurs the return value is 2. | ||
|
||
|
||
```sh | ||
./verifyBinaries.sh 2.0.0 | ||
./verifyBinaries.sh 2.0.0-rc1 | ||
``` | ||
|
||
If you do not want to keep the downloaded binaries, specify anything as the second parameter. | ||
|
||
```sh | ||
./verifyBinaries.sh 2.0.0 delete | ||
``` |