Sam Curren
    • 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
    # Email Ownership Governance Framework This Governance Framework is community managed. When making connections from one person to another over DIDComm, it is useful to be able to gain proof of something to verify that the connection is with the right person and has not been subject to a MITM attack. We expect this Governance Framework to be one of many used for the purpose of helping to verify identity attributes in the creation of trusted channels. This is an early attempt at the creation and use of of a practical governance framework. As Governance Framework technology improves, we expect this particular framework to be replaced. ## Purpose To facilitate the verification of email ownership between two parties over DIDComm and related technologies. ## Details ### Issue Requirements Issuers must validate email ownership by sending an email to the email address in question. The email MUST contain a link for the user to click, or a code to be entered in a verification step. After verifying that the clicked link or entered code matches, the credential may be issued. Issued credentials should indicate an expiration date no longer than 6 months from the date of verification. ### Schemas ### Valid Issuers BGov: `<did>` ### Revocation This framework does not currently use revocation, relying upon the expiration date to prevent widespread issues. ### Allowable Verification Purposes Email addresses revealed in this manner may be used for the following purposes: - Displaying to recipient. - Checking against address book. ## Machine Readable Document _This document will be hosted at a stable URI, and will be updated as requried._ ```json= { "@context": ["https://github.com/hyperledger/aries-rfcs/blob/master/0430-machine-readable-governance-frameworks/context.jsonld"], "name": "Email Ownership" "version": "0.1", "description": "Proof of email ownership." "last_updated": "", "docs_uri": "<uri to human portion of this example", "data_uri": "<uri to machine readable portion of this example>", "schemas": [], "issuers":["<bcgov did>"] } ``` ### EDIT FROM DANIEL I said I didn't care about which syntax we use. That's true, but I DO care about the **expressiveness** of the syntax we design. So I'm making this counterproposal because I think the first cut above isn't expressive enough. If we want to say more things, we have to add additional fields in a way that doesn't follow any predefined pattern, and that may become cumbersome. What we have here isn't just a flat data structure; there are interrelationships among fields. Those interrelationships have to model complex business and legal logic as defined in the human side of gov frameworks. Just adding fields to a data structure won't be enough to extend this in the future, because we'll have to add logic about how the fields relate to one another. So while I don't care about which syntax we use, I want us to design (not necessarily implement!) that syntax out now, satisfying ourselves that it will be capable of saying (almost) everything we eventually expect to want. This will prevent us from imposing an upgrade burden on everybody when the syntax has to change (possibly several times). What I originally proposed in Aries 0430 is an example of such a syntax. There could be other examples that satisfy the same criteria, and I'd be happy to explore them. But before we discard my proposal, I feel like maybe we overestimated its complexity. Here's what the same doc would look like if we wanted to use that syntax to tolerate a more flexible model where issuers isn't a hard-coded role. It only diverges on line 10, and is only 1 line longer. Is this a lot harder to explain? ```json= { "@context": ["https://github.com/hyperledger/aries-rfcs/blob/master/0430-machine-readable-governance-frameworks/context.jsonld"], "name": "Email Ownership" "version": "0.1", "description": "Proof of email ownership." "last_updated": "", "docs_uri": "<uri to human portion of this example", "data_uri": "<uri to machine readable portion of this example>", "schemas": [], "roles": ["issuer"], "rules": [ {"when": {"id": "did:example:abc123"}, "thus": "issuer"} ] } ``` Comments: * Line 10: Roles will be defined in human docs. We have to be able to map what's said there to what's known in code. We don't want to hardcode "issuer" because some frameworks might need multiple types of issuers. * Line 11: When we see a party controlling this DID, impute the "issuer" role to them. I feel like this is ultra simple. It imposes almost no extra parsing burden. But it is compatible with a future evolution that is far more powerful and rich: ```json= { "@context": ["https://github.com/hyperledger/aries-rfcs/blob/master/0430-machine-readable-governance-frameworks/context.jsonld"], "name": "Email Ownership" "version": "0.1", "description": "Proof of email ownership." "last_updated": "", "docs_uri": "<uri to human portion of this example", "data_uri": "<uri to machine readable portion of this example>", "schemas": [], "roles": ["issuer"], "privileges": [{"name": "issue-email-proof", "uri": "https://foo.org/aries/gf/issue-email"} ], "duties": [ {"name": "GDPR-dat-control", "uri": "https://foo.org/gdpr/safeguard-pii"} ], "define": [ {"name": "BCGov": "id": "did:example:abc123"} ], "rules": [ {"grant": ["issue-email-proof"], "when": {"name": "BCGov"}, "duties": ["GDPR-dat-control"], "thus": "issuer"} ] } ``` This version has more indirections in it, but they follow a predictable pattern that the syntax already contemplated by avoiding hardcoding. More comments: * Line 11: Like arbitrary roles, we can also define arbitrary privileges and what they mean. * Line 12: And you can define arbitrary duties. * Line 13: Declare that the name "BCGov" belongs to anyone controlling this particular DID. This lets an issuer use more than one DID, among other things. You can define as many things as you want. * Line 14: Let anybody have the arbitrary 'issue-email-proof' privilege if they are named BCGov, as defined immediately above. Conferring this priv also confers an arbitrary GDPR duty, and gives that entity the arbitrary 'issuer' role. This contains a handful of indirections, but it is still not drastically more verbose or harder to parse. It allows for things like granting issuance rights for certain types of credentials only, and only to entities that can prove their qualifications with other credentials. It supports hierarchical accreditation. It provides a pattern to express qualifications and duties for verifiers and holders, not just issuers. Again, I would be happy to explore alternative syntaxes. What I'd want to see in them is equivalent expressiveness. No matter which syntax we choose, we don't have to implement all its complexity now; I just advocate that we allow for future expressiveness without changing the syntax design. ## Notes - Right now this is a direct list of issuers. In the future, moving to a credential held by issuers is more scalable. - This example doesn't quite align with [RFC 340](https://github.com/hyperledger/aries-rfcs/tree/master/concepts/0430-machine-readable-governance-frameworks). We should explore the differences and find the right alignment. ## Questions - RFC 430 doesn't include a reference to schemas. How should this be done? - Ownership is probably the wrong word for the title, as is control. What is the right word here? - Multiple Schemas in the same framework? - Are there subsets of Governance Frameworks that allow portions to be referenced, or only the framework as a whole? - Code for the indy email verification service: https://github.com/bcgov/indy-email-verification

    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