LinusU / LinusU/php-bitcoin-address-validator

Does not work for TESTNET_PUBKEY

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
54
Forks
27
PR merge metrics
No merged PRs in 30d

Description

For this valid TESTNET public key for one of the address in Electrum wallet running with -testnet
02fa68a884dc0fb7afd2f12825cec471b3d65c18708369d7b2bc741c487ddef1ff
says invalid

The address is:
mrjCJbLDAe9bWubuhs72bnWqpUbQfZ6g4Z

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported validation failure with the TESTNET public key and address from the issue. Then trace the validator entry point to identify where testnet inputs are handled and add or update coverage for this case. Done means the supplied valid testnet address is accepted without regressing existing validation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
blockchain
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.