Skip to content

feat: implement half-half attack (single signature) #5

Description

@oritwoen

Description

Implement the half-half attack where k = h_msb || d_msb (nonce constructed from hash and private key MSBs).

Background

In 2023, researchers discovered 88,230 vulnerable Bitcoin signatures where the nonce was constructed by concatenating MSBs of the message hash and private key. This allows key recovery from a single signature.

Impact: 222 BTC were at risk.

Requirements

  • Detect half-half nonce pattern
  • Single-signature key recovery
  • Support various bit-split ratios (128|128, etc.)

Technical Notes

  • Most dangerous attack - only needs 1 signature
  • Detection may require brute-force verification
  • Consider GPU acceleration for detection phase

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions