Andor Kesselman
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    ### DID Document ```sh "serviceEndpoint": [ { "profile": "https://trustoverip.org/profiles/trp/v2", "uri": "https://my-tr-service/" } ] ``` ### Profile ```sh { "@context": ["https://trustoverip.org/contexts/v2/profile"], "id": "trp-v2-profile", "response_schema": "swagger", "body": { swagger doc } } ``` ### TRP ``` https service ``` ### Architecture ```mermaid graph TD DIDDocument --> Profile -->|Describes| ServiceInteraction[Service Interaction] ``` from our pre-meeting [somewhat related] discussion... this is the recent document that does a good job summarizing Digital Identity Standards from ENISA (not ETSI): https://www.enisa.europa.eu/publications/digital-identity-standards/@@download/fullReport https://diacc.ca/wp-content/uploads/2023/03/PCTF-Trust-Registries-Component-Overview_Draft-Recomendation-V1.0r.pdf https://www.aamva.org/getmedia/b801da7b-5584-466c-8aeb-f230cef6dda5/mDL-Implementation-Guidelines-Version-1-2_final.pdf https://www.aamva.org/identity/mobile-driver-license-digital-trust-service ### Differences between Service Endpoint Type Vs. Profile * Differences in scope. * Profiles are more specific about what `implementation` of service endpoint is available whereas `type` field is more of a `class` of service endpoints. ```mermaid graph TD subgraph TrustRegistryType Profile1[TRP] Profile2[TEDocument] end ``` * Namespacing issue ```sh "serviceEndpoint": [ { "type": "Trust Registry", "profile": "https://trustoverip.org/profiles/trp/v2", "uri": "https://my-tr-service/" } ] ``` ```sh "serviceEndpoint": [ { "type": "Trust Registry", "profile": "https://eutrustlist.com/protocols/v2", "url": "https://" } ] ``` ### Service Endpoint Struct * It MUST be either an array or a single struct: * The struct MUST have the following properties: * An HTTPS resolvable JSON Profile document. See profile document section for more details. * It MUST have a URI, which descibes the endpoint address of the interaction. An Example is seen below: ```sh { "@context":[ "https://www.w3.org/ns/did/v1", "https://trustoverip.org/profile/v2" ], ... "service": [{ "id":"did:example:123#trust-registry", "type": "TrustRegistry", "serviceEndpoint": { "profile": "https://trustoverip.org/profiles/trp/v2", "uri": "https://my-tr-service/" } }] } ``` ## Profile Definitions * 2 goals * Description: string match. * Normatively describe interaction ``` { "@context": "<>" "metadata": { "id": <>, "title": <>, "schema": <>, "description": <>, "tags": <>, "creator": <>, "version": <> }, "definition": { } } ``` - Why need json-ld. What's the purpose longer term? - uniqueness important. - Cosanna : Pan Canadian TR might be able to help. ## Non-normative chaining and container problem * Trust on First Use ### Data Format Specification The data structure described in this specification MUST adhere to the following rules: 1. It MUST be a single struct. - It MUST have the following properties: - `profile`: An HTTPS-resolvable JSON Profile document. Refer to the "Profile Document" section for detailed requirements. - `uri`: It MUST include a URI property, which describes the endpoint address of the interaction. ### Profile Document The Profile document referred to above MUST be in JSON format and must be accessible via an HTTPS-resolvable URL. This document SHOULD adhere to the context and schema defined by minimally the following JSON-LD contexts: - https://www.w3.org/ns/did/v1 - https://trustoverip.org/profile/v2 ### Example An example of the expected data format is provided below: ```json { "@context":[ "https://www.w3.org/ns/did/v1", "https://trustoverip.org/profile/v2" ], ... "service": [{ "id": "did:example:123#trust-registry", "type": "TrustRegistry", "serviceEndpoint": { "profile": "https://trustoverip.org/profiles/trp/v2", "uri": "https://my-tr-service/" } }] } ``` ## Profile Specification The profile specification is a structured JSON document that comprehensively outlines a service endpoint's set of capabilities. It consists of three primary sections: 1. **Profile Metadata**: Used to describe higher level information about the profile. 2. ~**API Descriptors**: Used to describe specific details about how to connect to the service.~ 3. **Proofs**: Used to ensure that the data has not been tampered with. ```mermaid graph LR subgraph Profile ProfileMetadata[Profile Metadata] APIDescriptors[API Descriptors] Proofs[Proofs] end ``` - Schema <--> Capabilities - Feedback: Object separation from apis. #### Profile Metadata The Metadata section provides essential information about the profile document. ``` { "id": <>, "type": <>, "creationDate": <>, "lastUpdatedDate": <>, "previous": <>, "description": <>, "short_description": <>, "docs_url": <>, "version": <>, "tags": <>, "creator": <> } ``` #### API Descriptors #### Proofs The Proofs section specifies the proof mechanisms and the associated details required to verify the profile's authenticity. At minimum, one proof mechanism and its evaluation specifics MUST be provided to ensure the verifiability of the profile. ```js { "metadata": { "id": <>, "type": <>, "creationDate": <>, "lastUpdatedDate": <>, "previous": <>, "description": <>, "short_description": <>, "docs_url": <uri-to-docs>, "version": <>, "tags": <>, "creator": <> }, "definitions" : { // proposal: leave it out entirely for now. "capabilities?services?" : {} // describes the interactions with the service. }, "proof": { // proofing stuff here } } ``` - Sam Curren: - Shoudn't restrict the string match. - Problem with DIDComm protocol definitions: - No: for two reasons - Complicated. - Human readable documentation for what the protocol is for. - Considering now to walk to the space. - Take: Baby steps of understanding. - Darrell: - What are the services that are useful. - Talk to the DID for the TR and make sure things are lining up. - ![](https://hackmd.io/_uploads/HJ6-Inj32.jpg) ```json { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "metadata": { "type": "object", "properties": { "id": { "type": "string", "description": "The decentralized identifier representing the profile in the format of a did". }, "name": { "type": "string", "description": "the human readable name of the profile" }, "previous": { "type": "string", "description": "Reference to previous version of the data." }, "description": { "type": "string", "description": "A detailed description of the data." }, "short_description": { "type": "string", "description": "A short description of the profile." }, "validity_period": { "type": "string", "format": "date", "description": "combined date-time string representing the date and time the credential becomes valid, which could be a date and time in the future.", } "docs_url": { "type": "string", "format": "uri", "description": "URL to documentation for the data." }, "version": { "type": "string", "description": "The version of the data. Suggested to use semver." }, "tags": { "type": "array", "items": { "type": "string" }, "description": "Tags associated with the data." } }, "required": [ "id", "description", "short_description", "docs_url", "tags" ], additionalProperties: true }, "definitions": { "type": "object", "description": "Defines capabilities or services related to the data. }, "proof": { "type": "object", "description": "Proofing-related information." // You can add properties related to proofing here. } }, "required": ["metadata", "definitions", "proof"], "additionalProperties": false } ``` Proof must be done similar to https://www.w3.org/TR/vc-data-model/#proofs-signatures ```jsonld { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "metadata": { "type": "object", "properties": { "@context": { "type": "string", "format": "uri", "description": "The JSON-LD context URI." }, "id": { "type": "string", "description": "The unique identifier of the profile." }, "name": { "type": "string", "description": "The human-readable name of the profile." }, "previous": { "type": "string", "description": "Reference to the previous version of the data." }, "long_description": { "type": "string", "description": "A detailed description of the profile." }, "short_description": { "type": "string", "description": "A short description of the profile." }, "validity_period": { "type": "string", "format": "date-time", "description": "Combined date-time string representing the date and time the credential becomes valid, which could be a date and time in the future." }, "docs_url": { "type": "string", "format": "uri", "description": "URL to documentation for the profile." }, "version": { "type": "string", "description": "The version of the profile. Suggested to use semver." }, "tags": { "type": "array", "items": { "type": "string" }, "description": "Tags associated with the profile." } }, "required": [ "@context", "id" ], "additionalProperties": true }, "definitions": { "type": "object", "description": "Defines capabilities or services related to the profile." // You can add additional properties to describe capabilities or services here. }, "proof": { "type": "object", "description": "Proofing-related information." // You can add properties related to proofing here. } }, "required": ["metadata", "definitions", "proof"], "additionalProperties": false } ``` Check out cheqed DLR ```mermaid graph LR subgraph Profile Document Metadata[Metadata] Proofs[Proofs] end ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully