Skip to content

refactor(nostr): use Java Base64 for Blossom auth headers#616

Open
NicolaLS wants to merge 1 commit into
barrydeen:mainfrom
NicolaLS:refactor/auth-encoding
Open

refactor(nostr): use Java Base64 for Blossom auth headers#616
NicolaLS wants to merge 1 commit into
barrydeen:mainfrom
NicolaLS:refactor/auth-encoding

Conversation

@NicolaLS

@NicolaLS NicolaLS commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Replace android.util.Base64 with java.util.Base64 for Blossom auth headers. This facilitates easier testing of Blossom.createUploadAuth by removing the need for android instrumentation or roboelectric tests.

The behavior is equivalent:

  • json.toByteArray(Charsets.UTF_8) uses toByteArray default parameter which is already Charsets.UTF_8.
  • android.util.Base64s NO_WRAP flag is the default in the java.util.Base64 Basic Encoder

Replace `android.util.Base64` with `java.util.Base64` for Blossom auth
headers. This facilitates easier testing of `Blossom.createUploadAuth`
by removing the need for android instrumentation or roboelectric tests.
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