Skip to content

doc: Add share set generation guidance to wallets.md - #8

Draft
BenWestgate wants to merge 1 commit into
claude/project-thread-jnw01cfrom
claude/project-thread-fjc1fv
Draft

BenWestgate wants to merge 1 commit into
claude/project-thread-jnw01cfrom
claude/project-thread-fjc1fv

Conversation

@BenWestgate

Copy link
Copy Markdown
Owner

Requested by Ben · project thread

Follow-up to #7. The share set section moved out of #7 so it can stay small enough to review, and it comes back here with the fixes from your review of #7. This is stacked on #7's branch. Once #7 merges into the BlockstreamResearch#71 branch, retarget this one to 57-wallet-add-doc-for-generating. Upstream it can become its own PR after BlockstreamResearch#71.

Changes from the version reviewed in #7

  • Parameters: wallets MUST support thresholds 2 and 3, and MAY support up to 9. They MUST support up to 10 shares, and MAY support up to 31. The 2-of-3 and 3-of-5 defaults are now MAY.
  • Share indices: alphabetical indices tell a share's holder about the number of other shares.
  • Fresh secret: generate one random share, confirm it, then generate the next. The wallet can then mix re-entry timings and keystrokes into its entropy pool between draws. The CRC redraw of the last random share happens before that share is displayed.
  • Existing secret: shares are generated one at a time here too. With threshold k and n shares, derive n - k + 1 shares, because the secret is not one of the user's shares (from wallets-generation-draft 2492ac7).
  • Header: a new set's header must differ from the header of any existing share set.
  • Restores the link to this section from the Generate Support intro.

Generated by Claude Code

Restores the share set section moved out of #7, with
the fixes from its review:

- Wallets must support thresholds 2 and 3 and up to 10 shares, and
  may support thresholds up to 9 and up to 31 shares. Offering 2-of-3
  and 3-of-5 as defaults is optional.
- Alphabetical indices tell a share's holder about the number of other
  shares.
- Generate one random share, confirm it, then generate the next, so
  the wallet can mix re-entry timings and keystrokes into its entropy
  pool between draws.
- For an existing secret, derive n - k + 1 shares, since the secret
  is not one of the user's shares.
- A new set's header must differ from the header of any existing
  share set, whatever secret it belongs to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JjfHnJYx61dYZxUGWTL9nS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants