This commit is contained in:
swrup 2026-02-25 18:55:23 +01:00
parent 8384c64e3f
commit 83a4e7b766
2 changed files with 30 additions and 6 deletions

View file

@ -24,11 +24,12 @@ 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
--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"