Skip to content

Base58: store ALPHABET as a String rather than char[] - #4378

Open
msgilligan wants to merge 2 commits into
bitcoinj:masterfrom
msgilligan:msgilligan/Base58-alphabet-string
Open

msgilligan wants to merge 2 commits into
bitcoinj:masterfrom
msgilligan:msgilligan/Base58-alphabet-string

Conversation

@msgilligan

@msgilligan msgilligan commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

This makes it immutable. This is a minor breaking change. Users that want the old behavior can just add .toCharArray() if desired.

This is an alternative to:

This makes it immutable. This is a minor breaking change. Users that
want the old behavior can just add `.toCharArray()` if desired.
The getter returns the narrower `CharSequence` interface, but I think
it would also be fine to return the (immutable) `String`.
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