mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
contrib: move verify scripts to verify-binaries
This commit is contained in:
parent
db720b5a70
commit
663a89cfed
3 changed files with 10 additions and 10 deletions
|
@ -42,20 +42,20 @@ See the `Config` object for various options.
|
||||||
|
|
||||||
Validate releases with default settings:
|
Validate releases with default settings:
|
||||||
```sh
|
```sh
|
||||||
./contrib/verifybinaries/verify.py pub 22.0
|
./contrib/verify-binaries/verify.py pub 22.0
|
||||||
./contrib/verifybinaries/verify.py pub 22.0-rc2
|
./contrib/verify-binaries/verify.py pub 22.0-rc2
|
||||||
```
|
```
|
||||||
|
|
||||||
Get JSON output and don't prompt for user input (no auto key import):
|
Get JSON output and don't prompt for user input (no auto key import):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./contrib/verifybinaries/verify.py --json pub 22.0-x86
|
./contrib/verify-binaries/verify.py --json pub 22.0-x86
|
||||||
```
|
```
|
||||||
|
|
||||||
Rely only on local GPG state and manually specified keys, while requiring a
|
Rely only on local GPG state and manually specified keys, while requiring a
|
||||||
threshold of at least 10 trusted signatures:
|
threshold of at least 10 trusted signatures:
|
||||||
```sh
|
```sh
|
||||||
./contrib/verifybinaries/verify.py \
|
./contrib/verify-binaries/verify.py \
|
||||||
--trusted-keys 74E2DEF5D77260B98BC19438099BAD163C70FBFA,9D3CC86A72F8494342EA5FD10A41BDC3F4FAFF1C \
|
--trusted-keys 74E2DEF5D77260B98BC19438099BAD163C70FBFA,9D3CC86A72F8494342EA5FD10A41BDC3F4FAFF1C \
|
||||||
--min-good-sigs 10 pub 22.0-x86
|
--min-good-sigs 10 pub 22.0-x86
|
||||||
```
|
```
|
||||||
|
@ -63,26 +63,26 @@ threshold of at least 10 trusted signatures:
|
||||||
If you only want to download the binaries of certain platform, add the corresponding suffix, e.g.:
|
If you only want to download the binaries of certain platform, add the corresponding suffix, e.g.:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./contrib/verifybinaries/verify.py pub 22.0-osx
|
./contrib/verify-binaries/verify.py pub 22.0-osx
|
||||||
./contrib/verifybinaries/verify.py pub 22.0-rc2-win64
|
./contrib/verify-binaries/verify.py pub 22.0-rc2-win64
|
||||||
```
|
```
|
||||||
|
|
||||||
If you do not want to keep the downloaded binaries, specify the cleanup option.
|
If you do not want to keep the downloaded binaries, specify the cleanup option.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./contrib/verifybinaries/verify.py pub --cleanup 22.0
|
./contrib/verify-binaries/verify.py pub --cleanup 22.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Use the bin subcommand to verify all files listed in a local checksum file
|
Use the bin subcommand to verify all files listed in a local checksum file
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./contrib/verifybinaries/verify.py bin SHA256SUMS
|
./contrib/verify-binaries/verify.py bin SHA256SUMS
|
||||||
```
|
```
|
||||||
|
|
||||||
Verify only a subset of the files listed in a local checksum file
|
Verify only a subset of the files listed in a local checksum file
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./contrib/verifybinaries/verify.py bin ~/Downloads/SHA256SUMS \
|
./contrib/verify-binaries/verify.py bin ~/Downloads/SHA256SUMS \
|
||||||
~/Downloads/bitcoin-24.0.1-x86_64-linux-gnu.tar.gz \
|
~/Downloads/bitcoin-24.0.1-x86_64-linux-gnu.tar.gz \
|
||||||
~/Downloads/bitcoin-24.0.1-arm-linux-gnueabihf.tar.gz
|
~/Downloads/bitcoin-24.0.1-arm-linux-gnueabihf.tar.gz
|
||||||
```
|
```
|
|
@ -31,7 +31,7 @@ def main():
|
||||||
|
|
||||||
def run_verify(global_args: str, command: str, command_args: str) -> subprocess.CompletedProcess:
|
def run_verify(global_args: str, command: str, command_args: str) -> subprocess.CompletedProcess:
|
||||||
maybe_here = Path.cwd() / 'verify.py'
|
maybe_here = Path.cwd() / 'verify.py'
|
||||||
path = maybe_here if maybe_here.exists() else Path.cwd() / 'contrib' / 'verifybinaries' / 'verify.py'
|
path = maybe_here if maybe_here.exists() else Path.cwd() / 'contrib' / 'verify-binaries' / 'verify.py'
|
||||||
|
|
||||||
if command == "pub":
|
if command == "pub":
|
||||||
command += " --cleanup"
|
command += " --cleanup"
|
Loading…
Add table
Reference in a new issue