Skip to content

Fix Shamir leading coefficient generation#54

Open
KingParmenides wants to merge 1 commit into
bitaps-com:masterfrom
KingParmenides:codex-shamir-leading-coeff-bounty-20260511
Open

Fix Shamir leading coefficient generation#54
KingParmenides wants to merge 1 commit into
bitaps-com:masterfrom
KingParmenides:codex-shamir-leading-coeff-bounty-20260511

Conversation

@KingParmenides
Copy link
Copy Markdown

Summary

  • Prevent generated Shamir polynomials from using 0 as the highest-degree coefficient.
  • Preserve the existing distinct coefficient behavior and restore compatibility.
  • Add a regression test that forces a zero leading coefficient and verifies two shares no longer recover a 3-of-3 secret.

This addresses the degree-collapse issue described in #45 and the Bitaps Shamir bug bounty category for implementation bugs in the presented secret sharing scheme.

Verification

  • npm test (85 passing)
  • git diff --check

Bounty payout address if accepted: 39Q34P8A7g375yqEr8buvNJkUbRgKfbKQZ

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.

1 participant