caelum0x 43a0bff632 fix(privacy): gen-dev-keys writes proving keys too (closes Gap A at source)
clawchaind privacy gen-dev-keys (used by scripts/local-dev.sh) ran SetupTransfer/
SetupUnshield — which return both pk and vk — but discarded the proving keys,
writing only transfer_vk.bin/unshield_vk.bin. So a dev node could VERIFY proofs but
no client could GENERATE them against it: the shield->unshield round-trip needed a
separate 'clawproof setup' + manual VK swap (the Gap A workaround).

Now also writes transfer_pk.bin + unshield_pk.bin (matched pair from the same
setup). A dev node seeded by local-dev.sh has a complete key set: clawproof/clawd
generate proofs against <home>/keys that verify on-chain with no swap.

Verified live: gen-dev-keys .local-node/keys -> reboot (VKs loaded, no warning) ->
shield 8000 -> clawproof unshield-proof --keys-dir .local-node/keys (root matched)
-> MsgUnshield code 0, proof verified against on-chain VK. No clawproof setup, no
manual swap.
2026-05-31 21:53:16 +03:00
..
2026-02-17 23:28:05 +03:00
2026-02-17 23:28:05 +03:00