Will Abramson
    • 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 New
    • 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 Note Insights Versions and GitHub Sync 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
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # DID Resolution Testable Statements ## 1. [OPTIONAL] If the `service` parameter is present, the associated value MUST be an ASCII string. ## 2. [OPTIONAL] If the `serviceType` parameter is present, the associated value MUST be an ASCII string. ## 3. [OPTIONAL] If the `relativeRef` parameter is present, the associated value MUST be an ASCII string and MUST use percent-encoding for certain characters as specified in RFC3986 Section 2.1. ## 4. [OPTIONAL] If the `versionTime` parameter is present, the associated value MUST be an ASCII string which is a valid XML datetime value, as defined in section 3.3.7 of W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes [XMLSCHEMA11-2] ## 5. [OPTIONAL] The datetime value of the `versionTime` parameter MUST be normalized to UTC 00:00:00 and without sub-second decimal precision ## 6. [OPTIONAL] If the `hl` parameter is present, the associated value MUST be an ASCII string. ## 7. All conformant DID resolvers MUST implement the DID resolution function for at least one DID method and MUST be able to return a DID document in at least one conformant representation. ## 8. The `did` input to the resolve function is REQUIRED and the value MUST be a conformant DID as defined in Decentralized Identifiers (DIDs) v1.0. ## 9. The `resolutionOptions` input to the resolve function is REQUIRED, but the structure MAY be empty. ## 10. The `didResolutionMetadata` structure is REQUIRED, and in the case of an error in the resolution process, this MUST NOT be empty. ## 11. If the resolution is not successful, the `didResolutionMetadata` structure MUST contain an error property describing the error ## 12. If the resolution is successful, the `didDocument` MUST be a DID document that is capable of being represented in one of the conformant representations of the Decentralized Identifiers (DIDs) v1.0 specification ## 13. The value of id in the resolved DID document MUST match the DID that was resolved ## 14. If the resolution is unsuccessful, the `didDocument` value MUST be empty. ## 15. If the resolution is successful, the `didDocumentMetadata` MUST be a metadata structure ## 16. If the resolution is unsuccessful, the `didDocumentMetadata` output MUST be an empty metadata structure ## 17. [OPTIONAL] The `accept` Media Type MUST be expressed as an ASCII string ## 18. [OPTIONAL] If the `contentType` property is present in DID Resolution Metadata, the value of this property MUST be an ASCII string that is the Media Type of the conformant representations. In this case, the caller of the resolve function MUST use this value when determining how to parse and process the didDocument. ## 19. [DUPLICATE, 11] The `error` property in the DID Resolution Metadata is REQUIRED when there is an error in the resolution process ## 19. [OPTIONAL] The value of the `created` property in DID Document Metadata MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision ## 20. [OPTIONAL] The value of the `updated` property MUST follow the same formatting rules as the created property ## 21. If a DID has been deactivated, DID document metadata MUST include this property with the boolean value true ## 22. [OPTIONAL] If a DID has not been deactivated, this property is OPTIONAL, but if included, MUST have the boolean value false. ## 23. [OPTIONAL] The value of the `nextUpdate` property MUST follow the same formatting rules as the created property. ## 24. [OPTIONAL] The value of the `versionId` property MUST be an ASCII string. ## 25. [OPTIONAL] If present, the `equivalentId` value MUST be a set where each item is a string that conforms to the rules in Section Decentralized Identifiers (DIDs) v1.0 ## 26. [OPTIONAL] Each equivalentId DID value MUST be produced by, and a form of, the same DID method as the id property value ## 27. [OPTIONAL] A conforming DID method specification MUST guarantee that each equivalentId value is logically equivalent to the id property value. ## 28. [OPTIONAL] equivalentId is a much stronger form of equivalence than alsoKnownAs because the equivalence MUST be guaranteed by the governing DID method ## 29. [OPTIONAL] If present, the `canonicalId` value MUST be a string that conforms to the rules in Section Decentralized Identifiers (DIDs) v1.0 ## 30. [OPTIONAL] A canonicalId value MUST be produced by, and a form of, the same DID method as the id property value ## 31. [OPTIONAL] A conforming DID method specification MUST guarantee that the canonicalId value is logically equivalent to the id property value. ## 32. [UNTESTABLE?] The following DID resolution algorithm MUST be implemented by a conformant DID resolver. ## 33. If not, the DID resolver MUST return the following result: didResolutionMetadata: error object with type set to INVALID_DID didDocument: null didDocumentMetadata: «[ ]» ## 34. If not, the DID resolver MUST return the following result: didResolutionMetadata: error object with type set to METHOD_NOT_SUPPORTED didDocument: null didDocumentMetadata: «[ ]» ## 35. [UNTESTABLE] Besides the input DID, all additional resolution options of this algorithm MUST be passed to the Read operation of the input DID method. ## 36. This result MUST be represented in a conformant representation that corresponds to the accept input DID resolution option. ## 37. To dereference a DID fragment, the complete DID URL including the DID fragment MUST be used ## 38. The didUrl input is REQUIRED ## 39. The dereferencingOptions structure is REQUIRED, and in the case of an error in the dereferencing process, this MUST NOT be empty ## 40. If the dereferencing is not successful, this structure MUST contain an error property describing the error ## 41. If the dereferencing function was called and successful, this MUST contain a resource corresponding to the DID URL ## 42. If the dereferencing is unsuccessful, this value MUST be empty. ## 43. If the dereferencing is successful, this MUST be a metadata structure, but the structure MAY be empty ## 44. If the contentStream is a DID document, this MUST be a didDocumentMetadata structure as described in DID Resolution ## 45. If the dereferencing is unsuccessful, this output MUST be an empty metadata structure. ## 46. [OPTIONAL] If present, the associated value MUST be an ASCII string ## 47. [OPTIONAL] If the DID URL does not dereference to a verificationMethod, or the DID document does not authorize the verificationMethod for the specified verificationRelationship, then an error MUST be raised. ## 48. [OPTIONAl] The Media Type value MUST be expressed as an ASCII string. ## 49. This property is REQUIRED when there is an error in the dereferencing process ## 50. [UNTESTABLE] The following DID URL dereferencing algorithm MUST be implemented by a conformant DID resolver ## 51. If not, the DID URL dereferencer MUST return the following result: dereferencingMetadata: error object with type set to INVALID_DID_URL contentStream: null contentMetadata: «[ ]» ## 52. All dereferencing options and all DID parameters of the input DID URL MUST be passed as resolution options to the DID Resolution algorithm. ## 53. If the input DID does not exist in the VDR, the DID URL dereferencer MUST return the following result: dereferencingMetadata: error object with type set to NOT_FOUND contentStream: null contentMetadata: «[ ]» ## 54. If the input DID URL contains no DID path and no DID query: Example 3 did:example:1234 The DID URL dereferencer MUST return the resolved DID document and resolved 4.3 DID Document Metadata as follows: dereferencingMetadata: «[ .. ## 55. If the id property or the service DID parameter or both contain relative references, the corresponding absolute URIs MUST be resolved and used for determining the match, using the rules specified in RFC3986 Section 5: Reference Resolution and in section Relative DID URLs in Decentralized Identifiers (DIDs) v1.0. ## 56. If verificationMethod is not a conforming verification method, an error MUST be raised and SHOULD convey an error type of INVALID_VERIFICATION_METHOD. ## 57. If verificationMethod is not associated, either by reference (URL) or by value (object), with the verification relationship array in the output DID document identified by verificationRelationship, an error MUST be raised and SHOULD convey an error type of INVALID_RELATIONSHIP_FOR_VERIFICATION_METHOD. ## 58. The structure used to communicate this metadata MUST be a map of properties ## 59. Each property name MUST be a string ## 60. Each property value MUST be a string, map, list, set, boolean, or null ## 61. The values within any complex data structures such as maps and lists MUST be one of these data types as well ## 62. [UNTESTABLE] All metadata property definitions registered in the DID Specification Registries [DID-SPEC-REGISTRIES] MUST define the value type, including any additional formats or restrictions to that value (for example, a string formatted as a date or as a decimal integer) ## 63. The entire metadata structure MUST be serializable according to the JSON serialization rules in the [INFRA] specification ## 64. A DID resolver MUST support the DID resolution algorithm for at least one DID method and MAY support it for multiple DID methods: ## 65. The type value of the error object MUST be a URL ## 66. Where the values listed in the section below do not define a URL, the values MUST be prepended with the URL https://www.w3.org/ns/did#. ## 67. The input DID MUST be URL-encoded (as specified in RFC3986 Section 2.1). ## 68. The input DID URL MUST be URL-encoded (as specified in RFC3986 Section 2.1). ## 69. If the DID resolution or DID URL dereferencing function returns an error metadata property in the didResolutionMetadata or dereferencingMetadata, then the HTTP response status code MUST correspond to the value of the error metadata property, according to the following table: error HTTP status code INVALID_DID 400 INVALID_DID_URL 400 INVALID_OPTIONS 400 NOT_FOUND 404 REPRESENTATION_NOT_SUPPORTED 406 INVALID_DID_DOCUMENT 500 METHOD_NOT_SUPPORTED 501 INVALID_PUBLIC_KEY 500 INVALID_PUBLIC_KEY_LENGTH 500 INVALID_PUBLIC_KEY_TYPE 500 UNSUPPORTED_PUBLIC_KEY_TYPE 501 INTERNAL_ERROR 500 (any other value) 500 ## 70. The HTTP response status code MUST be 410. ## 71. The HTTP body MUST contain a DID resolution result (see 8 ## 72. The HTTP response status code MUST be 200. ## 73. The HTTP response MUST contain a Content-Type HTTP response header ## 74. Its value MUST be the value of the contentType metadata property in the didResolutionMetadata (see 4.2 DID Resolution Metadata). ## 75. The HTTP response body MUST contain the didDocument that is the result of the DID resolution function, in the representation corresponding to the Content-Type HTTP response header. ## 76. The HTTP body MUST contain a DID URL dereferencing result (see 9 ## 77. The HTTP response status code MUST be 303. ## 78. The HTTP response MUST contain an Location header ## 79. The value of this header MUST be the selected service endpoint URL. ## 80. the HTTP response body MUST be empty. ## 81. Its value MUST be the value of the contentType metadata property in the dereferencingMetadata (see 5.2 DID URL Dereferencing Metadata). ## 82. The HTTP response body MUST contain the contentStream that is the result of the DID URL dereferencing function, in the representation corresponding to the Content-Type HTTP response header.

    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