Since order is maintained in JSON arrays, I think this would maintain the
order of credential subjects (ref:
https://www.w3.org/TR/vc-data-model-2.0/#example-specifying-multiple-subjects-in-a-verifiable-credential
):
{"credentialSubject": [
{"id": "id-1"},
{"id": "id-2"}
]}
Andy
On Fri, Sep 22, 2023 at 9:51 PM Anders Rundgren <
anders.rundgren.net@gmail.com> wrote:
> Another solution is using deterministic CBOR which seems like an excellent
> fit for credentials and such.
> Deterministic CBOR will most likely become and IETF standard.
>
> https://github.com/cyberphone/D-CBOR#example
>
> Anders
>
> On 2023-09-22 14:38, Orie Steele wrote:
> > You can use JSON-LD language features to preserve order.
> >
> > If you use SD-JWT, because the JSON is signed instead of N-Quads, order
> is preserved by the signature.
> >
> > OS
> >
> > On Fri, Sep 22, 2023, 4:57 AM ステファニー タン(SBIホールディングス) <
> tstefan@sbigroup.co.jp <mailto:tstefan@sbigroup.co.jp>> wrote:
> >
> > Hi all,
> >
> > It's Stefannie again. Once again I would like to thank everyone for
> their help so far. We would be happy to participate in the next weekly call
> to introduce ourselves properly.
> >
> > Our next question is to do with VC and establishing a certain order..
> Inside the VC is the proof and other attributes, such as Credential
> Subject. Since JSON is unordered or does not preserve a certain order, what
> do you do when you want to establish a certain order for multiple
> credential subjects while preserving extensibility?
> >
> > Thank you for any advice or suggestion you might have.
> >
> > Best,
> > Stefannie
> >
>
>
>