Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLIP7: Share Kit compatibility with Verifiable Credentials #16

Open
ipatka opened this issue Mar 29, 2019 · 0 comments
Open

BLIP7: Share Kit compatibility with Verifiable Credentials #16

ipatka opened this issue Mar 29, 2019 · 0 comments

Comments

@ipatka
Copy link
Contributor

ipatka commented Mar 29, 2019

Simple Summary

Update the Share Kit payload to be compatible with the Verifiable Claims data model to improve interoperability in the decentralized identity ecosystem.

Abstract

Bloom's share kit consists of an identity proof, a claim (attestation) and the associated attestation proof. Simply by updating the payload of share kit and publishing properly formated context documents share kit could be compatible with multiple decentralized identity implementations.

Motivation

Make Share Kit compatible with emerging decentralized identity specifications

Specification

The below snippet is taken from the W3C Verifiable Claims data model draft specification v1.0. (https://w3c.github.io/vc-data-model/)

TODO update the example to show what Bloom's share kit would look like.

{
  "@context": [
    "https://www.w3.org/2018/credentials/v1",
    "https://www.w3.org/2018/credentials/examples/v1"
  ],
  "type": "VerifiablePresentation",
  // the verifiable credential issued in the previous example
  "verifiableCredential": [{
    "id": "http://example.edu/credentials/1872",
    "type": ["VerifiableCredential", "AlumniCredential"],
    "issuer": "https://example.edu/issuers/565049",
    "issuanceDate": "2010-01-01T19:73:24Z",
    "credentialSubject": {
      "id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
      "alumniOf": "<span lang='en'>Example University</span>"
    },
    "proof": {
      "type": "RsaSignature2018",
      "created": "2017-06-18T21:19:10Z",
      "creator": "https://example.edu/issuers/keys/1",
      "jws": "eyJhbGciOiJSUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..TCYt5X
        sITJX1CxPCT8yAV-TVkIEq_PbChOMqsLfRoPsnsgw5WEuts01mq-pQy7UJiN5mgRxD-WUc
        X16dUEMGlv50aqzpqh4Qktb3rk-BuQy72IFLOqV0G_zS245-kronKb78cPN25DGlcTwLtj
        PAYuNzVBAh4vGHSrQyHUdBBPM"
    }
  }],
  // digital signature by Pat on the presentation establishes consent and
  // protects against replay attacks
  "proof": {
    "type": "RsaSignature2018",
    "created": "2018-09-14T21:19:10Z",
    "creator": "did:example:ebfeb1f712ebc6f1c276e12ec21#keys-1",
    // 'nonce' and 'domain' protect against replay attacks
    "nonce": "1f44d55f-f161-4938-a659-f8026467f126",
    "domain": "4jt78h47fh47",
    "jws": "eyJhbGciOiJSUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..kTCYt5
      XsITJX1CxPCT8yAV-TVIw5WEuts01mq-pQy7UJiN5mgREEMGlv50aqzpqh4Qq_PbChOMqs
      LfRoPsnsgxD-WUcX16dUOqV0G_zS245-kronKb78cPktb3rk-BuQy72IFLN25DYuNzVBAh
      4vGHSrQyHUGlcTwLtjPAnKb78"
  }
}

Rationale

TODO

Backwards Compatibility

Share kit endpoints will need to be updated to support the new format. Mobile apps will probably not need to be updated since payload formatting takes place on bloom-web currently.

Test Cases

TODO

Implementation

TODO

Copyright

Copyright and related rights waived via CC0. Based on the Ethereum Improvement Proposal template.

@ipatka ipatka changed the title BLIP7: Share Kit comparability with Verifiable Credentials BLIP7: Share Kit compatibility with Verifiable Credentials Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant