offline-tool: clean up revoke-denom

This commit is contained in:
Swrup 2026-03-21 07:04:52 +01:00
parent 9c9414e96b
commit cbae1c773a
2 changed files with 16 additions and 37 deletions

View file

@ -26,12 +26,11 @@ 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 -- compute-denomination-hash $rsa_pub)
offline_tool revoke-denom \
--master_key $master_key \
--output $b \
--rsa \
$rsa_pub
h_denom=$(dune exec offline -- denomination-hash $rsa_pub)
$h_denom
offline_tool upload --input $b --url $url"/management/denominations/"$h_denom"/revoke"
echo "[OK] /management/denominations/\$H_DENOM/revoke"