Add gen-zaddrs.pl and improve docs

This commit is contained in:
Duke Leto
2022-09-21 09:04:32 -04:00
parent 9360cc3770
commit ab83649c1a
2 changed files with 35 additions and 2 deletions

17
contrib/gen-zaddrs.pl Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env perl
# Copyright 2019-2022 The Hush developers
# Released under the GPLv3
use warnings;
use strict;
my $hush = "./src/hush-cli";
my $znew = "$hush z_getnewaddress";
my $count = 1;
my $howmany = shift || 50;
while ($count < $howmany) {
my $zaddr = qx{$znew};
chomp($zaddr);
print qq{$zaddr\n};
$count++;
}