JJ: Description from the destination commit:
fix secmod add/write; + wip test revoke JJ: Description from source commit: + test disable-auditor + wire + drain
This commit is contained in:
parent
836b9ff64a
commit
c45cd51c27
14 changed files with 545 additions and 232 deletions
|
|
@ -22,16 +22,41 @@ offline_tool sign \
|
|||
offline_tool upload --input $b --url $url"/management/keys"
|
||||
echo "[OK] /management/keys"
|
||||
|
||||
offline_tool download --output $a --url $url"/keys"
|
||||
rsa_pub=$(jq -r '.denominations[0].denoms[0].rsa_pub' $a)
|
||||
offline_tool revoke-denom \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
--rsa \
|
||||
$rsa_pub
|
||||
h_denom=$(dune exec offline -- hash64 $rsa_pub)
|
||||
offline_tool upload --input $b --url $url"/management/denominations/"$h_denom"/revoke"
|
||||
echo "[OK] /management/denominations/\$H_DENOM/revoke"
|
||||
|
||||
pub=$(jq -r '.signkeys[0].key' $a)
|
||||
offline_tool revoke-signkey \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
$pub
|
||||
offline_tool upload --input $b --url $url"/management/signkeys/"$pub"/revoke"
|
||||
echo "[OK] /management/signkeys/\$EXCHANGE_PUB/revoke"
|
||||
|
||||
offline_tool enable-auditor \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
--auditor_url "auditor.example.com" \
|
||||
--auditor_name "auditor example" \
|
||||
--auditor_pub $auditor_pub \
|
||||
--validity_start 0
|
||||
--auditor_pub $auditor_pub
|
||||
offline_tool upload --input $b --url $url"/management/auditors"
|
||||
echo "[OK] /management/auditors"
|
||||
|
||||
offline_tool disable-auditor \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
--auditor_pub $auditor_pub
|
||||
offline_tool upload --input $b --url $url"/management/auditors/"$auditor_pub"/disable"
|
||||
echo "[OK] /management/auditors/\$AUDITOR_PUB/disable"
|
||||
|
||||
offline_tool wire-fee \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
|
|
@ -56,3 +81,32 @@ offline_tool global-fees \
|
|||
--purse_timeout 9999999
|
||||
offline_tool upload --input $b --url $url"/management/global-fees"
|
||||
echo "[OK] /management/global-fees"
|
||||
|
||||
offline_tool enable-wire \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
--payto_uri "" \
|
||||
--bank_label "" \
|
||||
--priority 4
|
||||
offline_tool upload --input $b --url $url"/management/wire"
|
||||
echo "[OK] /management/wire"
|
||||
|
||||
offline_tool disable-wire \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
--payto_uri ""
|
||||
offline_tool upload --input $b --url $url"/management/wire/disable"
|
||||
echo "[OK] /management/wire/disable"
|
||||
|
||||
# wtid (after base32 decode) must be 32bytes
|
||||
wtid="000G40R40M30E209185GR38E1W8124GK2GAHC5RR34D1P70X3RFG"
|
||||
offline_tool drain \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
--debit_account_section "" \
|
||||
--credit_payto_uri "" \
|
||||
--wtid $wtid \
|
||||
--date 0 \
|
||||
--amount $zero_euro
|
||||
offline_tool upload --input $b --url $url"/management/drain"
|
||||
echo "[OK] /management/drain"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue