Skip to content

fix(bitcoin): accept uppercase bech32 proof addresses#480

Open
Yurii214 wants to merge 1 commit into
entrius:testfrom
Yurii214:fix/474-uppercase-bech32
Open

fix(bitcoin): accept uppercase bech32 proof addresses#480
Yurii214 wants to merge 1 commit into
entrius:testfrom
Yurii214:fix/474-uppercase-bech32

Conversation

@Yurii214

@Yurii214 Yurii214 commented Jun 15, 2026

Copy link
Copy Markdown

Summary

Test plan

  • uv run pytest tests/test_bitcoin_signing.py
  • uv run ruff check allways/chain_providers/bitcoin.py tests/test_bitcoin_signing.py
  • Direct repro check: uppercase BC1Q... returns p2wpkh; mixed-case bc1Q... returns unknown.

Fixes #474

Normalize uniform-case bech32 addresses before BTC proof detection and verification so wallets that emit uppercase segwit addresses can complete BIP-137 flows.
@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: uppercase bech32 addresses rejected by detect_address_type, breaking BIP-137 verify

2 participants