mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 09:53:47 +01:00
contrib: move verify scripts to verify-binaries
This commit is contained in:
parent
db720b5a70
commit
663a89cfed
@ -42,20 +42,20 @@ See the `Config` object for various options.
|
||||
|
||||
Validate releases with default settings:
|
||||
```sh
|
||||
./contrib/verifybinaries/verify.py pub 22.0
|
||||
./contrib/verifybinaries/verify.py pub 22.0-rc2
|
||||
./contrib/verify-binaries/verify.py pub 22.0
|
||||
./contrib/verify-binaries/verify.py pub 22.0-rc2
|
||||
```
|
||||
|
||||
Get JSON output and don't prompt for user input (no auto key import):
|
||||
|
||||
```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
|
||||
threshold of at least 10 trusted signatures:
|
||||
```sh
|
||||
./contrib/verifybinaries/verify.py \
|
||||
./contrib/verify-binaries/verify.py \
|
||||
--trusted-keys 74E2DEF5D77260B98BC19438099BAD163C70FBFA,9D3CC86A72F8494342EA5FD10A41BDC3F4FAFF1C \
|
||||
--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.:
|
||||
|
||||
```sh
|
||||
./contrib/verifybinaries/verify.py pub 22.0-osx
|
||||
./contrib/verifybinaries/verify.py pub 22.0-rc2-win64
|
||||
./contrib/verify-binaries/verify.py pub 22.0-osx
|
||||
./contrib/verify-binaries/verify.py pub 22.0-rc2-win64
|
||||
```
|
||||
|
||||
If you do not want to keep the downloaded binaries, specify the cleanup option.
|
||||
|
||||
```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
|
||||
|
||||
```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
|
||||
|
||||
```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-arm-linux-gnueabihf.tar.gz
|
||||
```
|
@ -31,7 +31,7 @@ def main():
|
||||
|
||||
def run_verify(global_args: str, command: str, command_args: str) -> subprocess.CompletedProcess:
|
||||
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":
|
||||
command += " --cleanup"
|
Loading…
Reference in New Issue
Block a user