Skip to content
Alberto Abella edited this page Oct 13, 2022 · 35 revisions

Welcome to the alastria-identity-schemas wiki!

Objetives:

  1. Align AlastriaID data models for Credendials and Presentations with EBSI initiative
  2. Normalize data models for projects based on AlastriaID
  3. Stadarization the use of schemas for vertical and horizontal sectors

Objetives for a VC/VP:

  • Selective disclosure
  • Anti-correlation capabilities
  • Offline usage
  • Crypto agility

EBSI:

The type and data proof methods are being discussed in EBSI at these moment, as seen in:

Seems that the syntax for modeling Schemas it's gonna be JWTs data proofs with any kind of asymetric algoritm like RSA or ECDSA

W3C resume some of the advantages and problems with this combination:

Current implementation for Credentials (Attestation) are:

Credentials, according to the W3C, must express at least one proof mechanism and the details necessary to evaluate that proof in order for a credential or presentation to be a verifiable credential or a verifiable presentation.

This specification proposes two classes of testing mechanisms: external tests and embedded tests.

  • an external test is one that wraps an expression of this data model as a JSON web token
  • an embedded proof is a mechanism where the proof is included in the data, such as a Linked Data Signature.

When embedding a test, the test property MUST be used accoring with W3C Verifiable Credentials Data Model v1.1.

So, the credentials must be modeled with a JSON-LD that includes the credential in the "vc" field.

EBSI propose extending rfc7519:

  • JWT header: kid property
  • JWT payload: vc property

Example:

{
    "alg": "ES256",
    "kid": "did:ebsi:z219z1CJKSbtFc69M2jHcFmq#key-1",
    "typ": "JWT"
}.{
    "iss": "did:ebsi:z219z1CJKSbtFc69M2jHcFmq",
    "sub": "did:ebsi:zsSgDXeYPhZ3AuKhTFneDf1",
    "jti": "urn:ebsi:status:identity:verifiableID#1dee355d-0432-4910-ac9c-70d89e8d674e",
    "iat": 1638360000,
    "nbf": 1638360000,
    "exp": 1953892800,
    "vc": {
        "@context": [
            "https://www.w3.org/2018/credentials/v1"
        ],
        "id": "urn:ebsi:status:identity:verifiableID#1dee355d-0432-4910-ac9c-70d89e8d674e",
        "type": [
            "VerifiableCredential",
            "VerifiableAttestation",
            "VerifiableId"
        ],
        "issuer": "did:ebsi:z219z1CJKSbtFc69M2jHcFmq",
        "issuanceDate": "2021-12-01T12:00:00.0Z",
        "validFrom": "2021-12-01T12:00:00.0Z",
        "expirationDate": "2031-12-01T12:00:00.0Z",
        "credentialSubject": {
            "id": "did:ebsi:zsSgDXeYPhZ3AuKhTFneDf1",
            "familyName": "Doe",
            "firstName": "John",
            "dateOfBirth": "1999-03-22",
            "personalIdentifier": "ES/AT/123456789"
        },
        "credentialSchema": {
            "id": "https://api.preprod.ebsi.eu/trusted-schemas-registry/v1/schemas/0x14b05b9213dbe7d343ec1fe1d3c8c739a3f3dc5a59bae55eb38fa0c295124f49#",
            "type": "FullJsonSchemaValidator2021"
        },
        "credentialStatus": {
            "id": "urn:ebsi:status:identity:verifiableID#1dee355d-0432-4910-ac9c-70d89e8d674e",
            "type": "CredentialStatusList2020"
        },
        "evidence": [{
            "type": [
                "DocumentVerification"
            ],
            "verifier": "did:ebsi:z219z1CJKSbtFc69M2jHcFmq",
            "evidenceDocument": [
                "Passport"
            ],
            "subjectPresence": "Physical",
            "documentPresence": [
                "Physical"
            ]
        }]
    }
}

EBSI Login:

If you have an account as a user of the European Commission portal, you can obtain a JWT access token at the following URL:

EBSI Schemas:

At the moment schemas can be found, based on the confirmation tests of the wallets supported by EBSI:

Links

FIWARE examples:

Data Models && RFCs:

Other Data Models for VCs:

Signing credentials and presentatios are being discussed in others forums, like Internet Identity Workshop (https://docs.google.com/document/d/1aNHvPhFv85HHlG8Ry2etrw15KdY830oAL804rMFY9bY/edit#heading=h.r(pqzumxlevzk) and W3C (https://docs.google.com/spreadsheets/d/1WJ1pOH6zmZacuWgoAVfIHLI9Q1EPXbScY44w2gqv9vo/edit#gid=0)

Developers:

Extensiones JSON-LD

W3C Working Groups:

Schema Utils

affinidi

Orgs