fix secmod add; + wip revoke
This commit is contained in:
parent
836b9ff64a
commit
feaaccad5f
8 changed files with 137 additions and 41 deletions
|
|
@ -22,6 +22,24 @@ 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)
|
||||
h_denom=$(dune exec offline -- hash64 $rsa_pub)
|
||||
offline_tool revoke-denom \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
$h_denom
|
||||
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 \
|
||||
|
|
@ -32,6 +50,8 @@ offline_tool enable-auditor \
|
|||
offline_tool upload --input $b --url $url"/management/auditors"
|
||||
echo "[OK] /management/auditors"
|
||||
|
||||
# todo test disable auditor
|
||||
|
||||
offline_tool wire-fee \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
|
|
@ -56,3 +76,9 @@ offline_tool global-fees \
|
|||
--purse_timeout 9999999
|
||||
offline_tool upload --input $b --url $url"/management/global-fees"
|
||||
echo "[OK] /management/global-fees"
|
||||
|
||||
# todo test enable wire
|
||||
# todo test disable wire
|
||||
# todo test drain
|
||||
# todo test aml-officer
|
||||
# todo test partners
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue