Skip to content

Add address validation#32

Merged
GitGab19 merged 2 commits intomainfrom
validation-2
Mar 24, 2026
Merged

Add address validation#32
GitGab19 merged 2 commits intomainfrom
validation-2

Conversation

@pavlenex
Copy link
Copy Markdown
Contributor

@pavlenex pavlenex commented Mar 24, 2026

Closes #24
Successor of #27
Screenshot 2026-03-24 at 10 46 24
Screenshot 2026-03-24 at 10 46 28
Screenshot 2026-03-24 at 10 49 00
Screenshot 2026-03-24 at 10 49 03

@pavlenex pavlenex requested a review from GitGab19 March 24, 2026 09:50
@GitGab19
Copy link
Copy Markdown
Member

Can you just squash these three commits into a single one?

@pavlenex
Copy link
Copy Markdown
Contributor Author

@GitGab19 Done.

Copy link
Copy Markdown
Member

@GitGab19 GitGab19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just discovered it's not able to parse a taproot address.

I'm using this example to validate it: bc1p5d7rjq7g6rdk2yhzks9smlaqtedr4dekq08ge8ztwac72sfr9rusxg3297

@pavlenex
Copy link
Copy Markdown
Contributor Author

pavlenex commented Mar 24, 2026

@GitGab19 At this point this is beyond my skill level. Claude suggested this 2a3b991 which seemed crazy over-engineering, but apparently it's how it should be handled according to the dependency. Puzzling that this many new things have to be imported.

I pushed so you can test, review and then see if there's a better way to do it. If you can do it better on your own, take over please, at this stage I am taking Claude output too heavily for this PR.

@GitGab19
Copy link
Copy Markdown
Member

Looks like the correct thing to do: bitcoinjs/bitcoinjs-lib#1919 (comment)

Add validation

isValidBitcoinAddress now takes the specific network the user chose

improve error message

Improve error message

fix lint error in isValidBitcoinAddress
Copy link
Copy Markdown
Member

@GitGab19 GitGab19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK

@GitGab19 GitGab19 merged commit e529b05 into main Mar 24, 2026
3 checks passed
@GitGab19 GitGab19 deleted the validation-2 branch March 24, 2026 11:53
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.

Address validation

2 participants