Add Compromised flag restricting a seed to multisig co-signing only - #14
Merged
Conversation
Jossec101
force-pushed
the
feat/compromised-flag
branch
from
August 19, 2026 13:31
b2ff491 to
b5b34d1
Compare
Jossec101
force-pushed
the
feat/compromised-flag
branch
from
August 19, 2026 13:36
b5b34d1 to
68e0723
Compare
Jossec101
force-pushed
the
feat/compromised-flag
branch
from
August 19, 2026 13:39
68e0723 to
99fa1c0
Compare
RodriFS
reviewed
Aug 19, 2026
New optional boolean 'Compromised' in the per-fingerprint MF_* config (backward compatible: absent field deserializes to false). When set, the function refuses to sign any input that is not a true multisig requiring at least 2 signatures, so the seed's signature alone can never move funds. The check runs against the input's signable coin (NBitcoin only resolves it when the witness/redeem script is consistent with the UTXO's scriptPubKey) and extracts the multisig threshold from the script code. Intended for retired seeds after an internal wallet rotation: it contains Lambda-mediated misuse (compromised caller draining legacy single-sig wallets); it is not protection against a party holding the seed plaintext. Also extracts GetConfig() so env-var config parsing is shared between the signing loop and DecryptSeed, and documents the flag + the jq flip procedure in the README and seed-ceremony manifest checks.
Jossec101
force-pushed
the
feat/compromised-flag
branch
from
August 19, 2026 14:18
99fa1c0 to
5060db0
Compare
RodriFS
approved these changes
Aug 19, 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.
New optional boolean 'Compromised' in the per-fingerprint MF_* config
(backward compatible: absent field deserializes to false). When set, the
function refuses to sign any input that is not a true multisig requiring
at least 2 signatures, so the seed's signature alone can never move funds.
The check runs against the input's signable coin (NBitcoin only resolves
it when the witness/redeem script is consistent with the UTXO's
scriptPubKey) and extracts the multisig threshold from the script code.
Intended for retired seeds after an internal wallet rotation: it contains
Lambda-mediated misuse (compromised caller draining legacy single-sig
wallets); it is not protection against a party holding the seed plaintext.
Also extracts GetConfig() so env-var config parsing is shared between the
signing loop and DecryptSeed, and documents the flag + the jq flip
procedure in the README and seed-ceremony manifest checks.
Stack created with GitHub Stacks CLI • Give Feedback 💬