Skip to content

Conversation

@paullatzelsperger
Copy link
Member

What this PR changes/adds

This PR does two things:

  • makes the BitString.Parser slightly more intelligent in that it automatically uses a Base64UrlDecode without padding if the encoded list is prefixed with the "u" character
  • adds a writeMultibase method to the BitString.Writer which preprends the "u" character upon encoding.

Why it does that

convenient use of multibase encoding and Base64 decoding

Further notes

in the BitstringStatusListRevocationService I removed the section of code that previously handled the different Base64 prefixes. Those were moved to the BitString.Parser

Who will sponsor this feature?

Please @-mention the committer that will sponsor your feature.

Linked Issue(s)

Closes #5047

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@paullatzelsperger paullatzelsperger merged commit 6a05fef into eclipse-edc:main Jun 23, 2025
24 checks passed
@paullatzelsperger paullatzelsperger deleted the fix/improve_bitstring_class branch June 23, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BitString.Writer.write() does not produce spec-compliant Multibase-encoded base64url string

3 participants