Repository navigation
Host tool: lend a throwaway mainnet key for Lantern Zero's key check (#61) - #100
Merged
Merged
Conversation
Lantern Zero's production key-storage check needs a mainnet lease, and
the app never lends a mainnet viewing key. A Cargo feature,
host-mainnet-alerts, that no app build enables, lets the host tool lift
the mainnet and view-only rules for a throwaway wallet:
smoke --mainnet throwaway-ufvk | smoke --mainnet --wallet lend view --birthday H
cargo run --features host-mainnet-alerts --example lantern -- \
--mainnet --lend-key --wallet lend connect --scan
examples/lantern also gains --mainnet (data/mainnet/<NAME>, production
relay and gateway). Tests cover both builds; CI and check.sh lint and
test the feature too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #61: the "production key-storage check" prep step. The app is unchanged. Mainnet wallets in the app still never lend a viewing key.
Lantern Zero's production check (no key-derived data on disk, in logs or in backups) needs a real mainnet lease. This lets the host tool make one from a throwaway mainnet wallet, so no real wallet's key is lent.
host-mainnet-alerts, which no app build enables. With it, the engine'shost_lend_mainnet_key()lifts the mainnet and view-only checks inalerts_allowedand letslantern_wake_keyslend the Orchard IVK. It isn't exported to Swift or Kotlin.examples/lantern:--mainnet(wallet indata/mainnet/<NAME>, production relaylz-api, gateway push.lanternzero.com) and--lend-key(needs the feature and--mainnet).uivk1…key.scripts/check.shrun clippy and the lib tests with the feature too.Run:
Not done yet: a real run against production, and the server-side check itself (lanternzero-ops
notes/legal/scanning-risk-assessment.md).🤖 Generated with Claude Code