Skip to content

The explainer needs more clarity around example bitstring list I am unable to decode the example bitstring status list #201

@mjaferDo

Description

@mjaferDo

In the explainer the Status List credential credential example below I have tried to decode and then unzip the example encodedList however I have not been able to do so.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2"
  ],
  "id": "https://example.com/credentials/status/3",
  "type": ["VerifiableCredential", "BitstringStatusListCredential"],
  "issuer": "did:example:12345",
  "validFrom": "2021-04-05T14:27:40Z",
  "credentialSubject": {
    "id": "https://example.com/status/3#list",
    "type": "BitstringStatusList",
    "statusPurpose": "revocation",
    "encodedList": "uH4sIAAAAAAAAA-3BMQEAAADCoPVPbQwfoAAAAAAAAAAAAAAAAAAAAIC3AYbSVKsAQAAA"
  }
}

Also it is not clear from example that what bitstring list has been encoded. That is what does the list look like before it is encoded.
I have come across an implementation below.
https://github.com/digitalbazaar/vc-bitstring-status-list/tree/main

The library creates a binary array of bits (unsinged 8 digit integer) and it is not a string. It will help if the explainer elaborates a little when giving examples. The unencoded list below is a binary value representing statuses of 13 credentials.
"0000100010101"

I think it helps if we can clarify that the list should be created in binary format not a binary representation of bits in a ASCII string.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions