Skip to content

Array of either String or Object is difficult to implement in typed languages #50

Description

@mirceanis

The verified claims spec is difficult to implement in typed languages.

The verified claims requested from a user. Array of claim types or Claims Specs for self signed claims eg: ["name", {type: "email", essential: true, iss: [{did: 'did:web:uport.claims'}]}]

Having an array of either String or Object is fine in JS but is a nightmare to serialize/deserialize in typed languages.
Not only that, but the logic needed to parse the request gets more complicated and is not necessarily backwards compatible.

Since this is not widespread it may be worth using a different field for the verified claim query in the request instead of complicating the logic of existing fields and breaking current implementations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions