Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmabc committed Aug 7, 2017
1 parent 7167c5d commit 703e454
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions verify/README.md
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
```

0 comments on commit 703e454

Please sign in to comment.