Joe Andrieu
    • 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:merkle aka One Time Merkle Proofs for less correlatable Credentials aka One Time Revealable Credentials by [Joe Andrieu (Legendary Requirements)](joe@legreq.com), [Frederic Martin (myDid)](frederic.martin@mydid.com), [Imad El Aouny (myDid)](imad.elaouny@mydid.com), [Lohan Spies (DIDx](lohan.spies@didx.co.za)[ / IOHK)](lohan.spies@iohk.io) License [CC-BY 4.0](https://creativecommons.org/licenses/by/4.0/) Group credentials offer an opportunity for privacy preserving verification of group membership. ## Same Credential to a all members of a group We want to issue the exact same VC to all members of a group so that each VC reveals no information about who is a member of the group. We propose to do this by issuing a VC with subject id of the Merkle root of cryptographic identifiers controlled by various group members. Upon presentation of that VC to a Verifier, group membership can be verified by testing that the cryptographic id that signs the VP is in the merkle tree. We create a did:merkle and merkleProof proof type so that the VC is issued to did:merkle and the VP includes TWO proofs. One is the traditional tamper-evident signature. The second is the merkleProof. For additional correlation protection, the issuer may include multiple cryptographic ids for each recipient, allowing recipients to use different proofs with different verifiers. This solution is cryptosuite agnostic and does not depend on novel cryptography such as group signatures (or ZKP methods). Anti-correlation feature is the combined result of provable group membership and multiple proofs per member. ## Option: Different credentials to different members of a group As we issue a credential to the Merkle root of a Merkle tree of members, is is possible to use a Merkle root of a Merkle tree for credential attributes and values. >This won't be the main subject of this paper. A separated document will be proposed later about using a "second Merkle tree for credentials". ## Creative Brief ### Audience Technical: Developers, Standards advocates Practical: Regulators, Product Managers, CEOs ### Change in behavior We want readers to adopt this technology for appropriate use cases. Secondarily, we want them to contribute to a conversation about how to better support individuals in their group interactions. ### Key Points 1. Mathematically, anonymity can be expressed as the degree to which an partially identified party can be confused with other parties. 2. Group membership is proven without revealing the members of the group 3. The same Verifiable Credential is issued to all members of the group, making the group membership aspects of the VC devoid of any personal data and personally identifiable information. Issuers must take care to not put other personal data in the shared VC. 4. Uses well-proven, tested cryptography 5. VC issuers embed multiple cryptographic identifiers for each member to enable different proofs for different verifiers. This is a flexible policy choice by the issuer. 6. Wallets need to track with proofs have been distributed to minimize re-use. 7. Issuers may support automated refresh properties 8. Issuers can selectively revoke the VC for particular members 9. An Account Extended Public Key can be given by the holder to the issuer so the issuer can derive HD pub keys on his side (and be reassured these keys are belonging/linked to the same holder, or at least the same "seed") 10. Implementation Guidance a. Wallets would benefit from using HDKeys for generating the ids used in the merkle tree. 11. Opportunities for future evolution a.Use HDKeys in the merkle tree (so wallets give the issuer a master pubkey rather than individual keys) b. Additional claim content could be indexed in the merkletree c. A did:indirectMerkle could allow a decentralized registry to provide the "current" merkle root ### Output 1. DID Specification 2. Revocation Specification for Group VC: Member Revocation 3. White paper on using did:merkle to improve privacy for VCs related to group membership ## DID Method Name A merkle DID is immutable and cannot be updated or deactivated. The namestring that shall identify this DID `method-name` is: `merkle`. A DID that uses this method MUST begin with the following prefix `did:merkle`. The prefix string MUST be in lowercase. The remainder of the DID after the prefix, is specified below: ### Method Specific Identifier The DID merkle method-specific identifier (merkleroot-id) is made up of a root hash of a merkle-tree. ### merkle DID method syntax ```abnf merkle-did = "did:merkle:" merkleroot-id merkleroot-id = *( *idchar ":" ) 1*idchar idchar = ALPHA / DIGIT / "." / "-" / "_" / pct-encoded pct-encoded = "%" HEXDIG HEXDIG ``` ### Examples of `did:merkle` identifiers An example of a DID merkle: ```abnf did:merkle:7Tqg6BwSSWapxgUDm9KKgg ``` An example of a DID merkle URL (used for verifying membership) ``` did:merkle:7Tqg6BwSSWapxgUDm9KKgg?leaf=did:example:abc&proof=hash1:hash2:hash3#key1 ``` The fragment, if any, is applied to the resource at the leaf. ## Multihash https://github.com/multiformats/multihash ``` <varint hash function code><varint digest size in bytes><hash function output> ``` NOTE: TURN INTO ABNF https://datatracker.ietf.org/doc/html/draft-snell-multihash-00 ```abnf= varint-terminator = %x00-7f varint-continuation = %x80-ff unsigned-varint = *8varint-continuation varint-terminator ``` ## Multibase https://github.com/multiformats/multibase ```abnf= base-identifier = <ascii character> multibase = base-identifier {base-encoded-data} ``` ## DID Documents A DID Document associated with a merkle DID is deterministically generated to enable DID-aware software to verify actions taken by a member of the group. The [representation of a when requested for production](https://www.w3.org/TR/did-core/#representations) MUST meet the DID Core specification. ### Deterministic DID Document **Example 1** ```jsonld { "@context": "https://www.w3.org/ns/did/v1", "id" : "did:merkle:zH3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV" } ``` ## Key Agreement It's not clear we can do classic key agreement as a verification relationship because we are not able to perform encryption or decryption just because we have the did:merkle. In an interactive situation, a controller **could** give the did:merkle along with a merkle_path and their key to enable encryption... but if you are already in an interactive engagement, one can just first prove membership by authentication, then bootstrap a key for encryption/decryption. ## VC Issued to a did:merkle group Inside example below: * **did:ex:italy** is the did of the issuer, it can be any form of did (ex: did\:key:ab37dfa[...]) * **"citizenship": "it"** are the attribute and value commonly shared by all members of the group (they all have italian citizenship) * **did:merkle:zH3C2AVvL[...]** is the did for the group of holders ```jsonld { "@context": [ "https://www.w3.org/2018/credentials/v1", "https://www.w3.org/2018/credentials/examples/v1", ], "type": [ "VerifiableCredential" ], "issuer": "did:ex:italy", "issuanceDate": "2010-01-01T19:23:24Z", "credentialSubject": { "@context": "https://github.com/WebOfTrustInfo/rwot11-the-hague/raw/master/draft-documents/didmerkle/context", "id": "did:merkle:zH3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV", "citizenship": "it" }, "proof": { "type": "RsaSignature2018", "created": "2017-06-18T21:19:10Z", "proofPurpose": "assertionMethod", "verificationMethod": "did:ex:italy#key-1", "proof": "eyJhbGciOiJSUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..TCYt5XsITJX1CxPCT8yAV-TVkIEq_PbChOMqsLfRoPsnsgw5WEuts01mq-pQy7UJiN5mgRxD-WUcX16dUEMGlv50aqzpqh4Qktb3rk-BuQy72IFLOqV0G_zS245-kronKb78cPN25DGlcTwLtjPAYuNzVBAh4vGHSrQyHUdBBPM" } } ``` ## VP (with VC) presented by a member of a did:merkle group ```jsonld { "@context" : ["https://www.w3.org/2018/credentials/v1"], "type" : "VerifiablePresentation", "verifiableCredential" : { "@context": [ "https://www.w3.org/2018/credentials/v1", "https://www.w3.org/2018/credentials/examples/v1" ], "type": [ "VerifiableCredential" ], "issuer": "did:ex:italy", "issuanceDate": "2010-01-01T19:23:24Z", "credentialSubject": { "@context": "https://github.com/WebOfTrustInfo/rwot11-the-hague/raw/master/draft-documents/didmerkle/context", "id": "did:merkle:zH3C2AVvLMv6gmMNm3uVAjZpfkcJCwDwnZn6z3wXmqPV", "citizenship": "it" }, "proof": { "type": "RsaSignature2018", "created": "2017-06-18T21:19:10Z", "proofPurpose": "assertionMethod", "verificationMethod": "did:ex:italy#key-1", "proof": "eyJhbGciOiJSUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..TCYt5XsITJX1CxPCT8yAV-TVkIEq_PbChOMqsLfRoPsnsgw5WEuts01mq-pQy7UJiN5mgRxD-WUcX16dUEMGlv50aqzpqh4Qktb3rk-BuQy72IFLOqV0G_zS245-kronKb78cPN25DGlcTwLtjPAYuNzVBAh4vGHSrQyHUdBBPM" } }, "proof": { "type": "RsaSignature2018", "created": "2018-09-14T21:19:10Z", "proofPurpose": "authentication", "verificationMethod": "did:merkle:zH3C2AVvLMv6gmMNm3uVAjZpfkcJCwDwnZn6z3wXmqPV?leaf=did:key:abc&path=hash1:hash2:hash3", "challenge": "1f44d55f-f161-4938-a659-f8026467f126", "domain": "4jt78h47fh47", "jws": "eyJhbGciOiJSUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..kTCYt5 XsITJX1CxPCT8yAV-TVIw5WEuts01mq-pQy7UJiN5mgREEMGlv50aqzpqh4Qq_PbChOMqs LfRoPsnsgxD-WUcX16dUOqV0G_zS245-kronKb78cPktb3rk-BuQy72IFLN25DYuNzVBAh 4vGHSrQyHUGlcTwLtjPAnKb78" } } ``` ## VC Issued by a member of a did:merkle group (not quite complete) ```jsonld { "@context": [ "https://www.w3.org/2018/credentials/v1", "https://www.w3.org/2018/credentials/examples/v1" ], "type": [ "VerifiableCredential" ], "issuer": "did:merkle:zH3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV?did=XYZ&proof=123", "issuanceDate": "2010-01-01T19:23:24Z", "credentialSubject": { "@context":"https://github.com/WebOfTrustInfo/rwot11-the-hague/raw/master/draft-documents/didmerkle/context", "id": "did:merkle:zH3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV", "citizenship": "it" }, "proof": [ { "type": "merkleProof", "created": "2017-06-18T21:19:10Z", "proofPurpose": "assertionMethod", "verificationMethod": "did:merkle:abc?did=XYZ#proof-1", "signature": "eyJhbGciOiJSUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..TCYt5XsITJX1CxPCT8yAV-TVkIEq_PbChOMqsLfRoPsnsgw5WEuts01mq-pQy7UJiN5mgRxD-WUcX16dUEMGlv50aqzpqh4Qktb3rk-BuQy72IFLOqV0G_zS245-kronKb78cPN25DGlcTwLtjPAYuNzVBAh4vGHSrQyHUdBBPM" }, { "type": "RsaSignature2018", "created": "2017-06-18T21:19:10Z", "proofPurpose": "assertionMethod", "verificationMethod": "did:merkle:abc?did=XYZ#key-1", "merkleProof": "eyJhbGciOiJSUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19TCYt5XsITJX1CxPCT8yAV-TVkIEq_PbChOMqsLfRoPsnsgw5WEuts01mq-pQy7UJiN5mgRxD-WUcX16dUEMGlv50aqzpqh4Qktb3rk-BuQy72IFLOqV0G_zS245-kronKb78cPN25DGlcTwLtjPAYuNzVBAh4vGHSrQyHUdBBPM" } ] } ``` ## DID transaction operations ### Create DID Steps to create a merkle DID: ``` ┌(Hash 0-0-0)─< did:key:JulietPubKey1 ┌(Hash 0─0)┤ │ └(Hash 0─0-1)─< did:key:FedericoPubKey1 ┌(Hash 0)┤ │ │ ┌(Hash 0─1-0)─< did:key:JulietPubKey2 │ └(Hash 0-1)┤ (Merkle │ └(Hash 0─1-1)─< did:key:MarioPubKey1 ─- Root --┤ Hash) │ ┌(Hash 1-0-0)─< did:key:JulietPubKey3 │ ┌(Hash 1-0)┤ │ │ └(Hash 1-0-1)─< did:key:MarioPubKey2 └(Hash 1)┤ │ ┌(Hash 1-1-0)─< did:key:MarioPubKey3 └(Hash 1-1)┤ └(Hash 1-1-1)─< did:key:FedericoPubKey2 ``` 1. Holders share a set of `n` public keys or DIDs with the issuer 2. The issuer decide the batch size for issuance of the group credential 3. Once all holders `n` public keys or DIDs are collected the issuer generates a merkle-tree where each leave in the merkle-tree represents a hash of a single public key or DID 4. The issuer use the merkle-root hash as the DID identifier 5. The merkle DID can now be constructed by appending the merkle-root hash to `did:merkle` 6. Merkle DID example: `did:merkle:abc` ### Resolve DID ### Update DID Merkle DIDs are immutable and cannot be updated. ### Deactivate DID Merkle DIDs are immutable and cannot be deactivated. ## Security Considerations 1. Hash algorithm being used and security issues with MD5 as example ## Privacy Considerations 1. Issuers must ensure that no PII is exposed via the verifiable credential issued to the group 2. The quality of the Merkle tree has to be assured by the issuer (high number of different people and keys) ## References ## TODO: 1. optional: if we want to federate more users inside updated merkle tree, we may define new ways to sent new updated merkle proofs to existing users. as an example : - Sophia can use her first key (did\:key:SophiaPubKey1) to show only her nationality - she will provide: - merkle proof for leaf H0-1-1 - content of leaf H0-1-1 - signature of the VP with the provided SophiaPubKey1 - Sophia can use her second key (did\:key:SophiaPubKey2) to show only her birthplace - she will provide : - merkle proof for leaf H1-1-0 - content of the leaf - signature of the VP with the provided SophiaPubKey2 # Separate trees [Note my examples ignore @context, type, and other JSON-LD bureaucracy.] In the case as presented (Sophia & Lars), we do not have group semantics. That is, there is no commonality between the claims of Lars and Sophia, and no additional anonymity gained by sharing the same VC. Therefore, we have two different VCs (A,B) with two different trees(A1, A2, B1,B2), each. **[Note that in the previous example, we don't have examples of VCs and VPs. I'm assuming there is just one VC that has everything in it. And somehow, it is issued by an authority that is acceptable for asserting the nationality and birthplace of both Swedish and Spanish citizens (a use case I don't find aligned with my notions of authority).]** In the first, we have a group of SU citizens, born in Karlstad They get `VC-A` that looks like this: ```jsonld { "credentialSubject": { "id":"groupRootG1", "claimRoot" : "claimRoot1", }, "proof": { [signed by Swedish govt] } } ``` The second group is comprised of Spanish Citizens, born in Madrid. They get a `VC-B` that looks like this: ```jsonld { "credentialSubject": { "id":"groupRootG2", "claimRoot" : "claimRoot2", }, "proof": { [signed by Spanish govt] } } ``` This is a core notion behind the privacy engineering of VCs. Individuals control the flow of information about them by explicitly controlling (through participation in) the distribution of VCs about them. That is, the initial recipients of the above credentials *are* the members of the group. Nobody else gets these VCs. These members then get to selectively disclose some attributes of their VC to the parties they want to share that information with. These group roots contain the keys of members of the group > note : add other branches with another member inside the tree exampels below to avoid misconception that there are only several keys of the same person in it ``` --(groupRoot G1-0)-- ┌(G1-1) - did:key:Lars1 └(G1-2) - did:key:Lars2 --(groupRoot G2-0)-- ┌(G2-1) - did:key:Sophia1 └(G2-2) - did:key:Sophia2 ``` The claimroots are constructed as follows ``` --(claimRoot C1-0)-- (C1-1) - "citizenship":"SU", -- (C1-2) - "birthplace":"Karlstad" --(claimRoot C2-0)-- (C2-1) - "citizenship":"ES", -- (C2-2) - "birthplace":"Madrid" ``` In short, all of the members in `G1` can selectively disclose any of the claims in `C1` and all the members in `G2` can selectively disclose any of the claims in `C2`. Membership `G1` does not enable disclosing claims from `C2` and reciprically, membership in `G2` does not enable disclosing claims from `C1`. The start of the privacy management is that only recipients get their VCs. Note also, that all recipients ALSO need to know the entire merkle tree (so they can generate proofs and leafs for VPs) This leads to the following VP1 from Lars (showing his citizenship using `did:key:lars1`) ```jsonld= { verifiableCredential: [ { "credentialSubject": { "id":"did:merkle:[G1-0]", "claimRoot" : "[C1-0]" }, "proof": { [signed by Swedish govt] } },{ "derivedCredential": { "id":"did:merkle:[G1-0]", "leaf":"citizenship:SU", "proof":"[C1-0]:[C1-1]" } } ], "proof":{ "type": "Ed25519Signature2020", "created": "2022-02-25T14:58:43Z", "verificationMethod":"did:[G1-0]?leaf=did:key:Lars1?proof=[G1-0][G1-1]#key1", "proofPurpose": "authentication", "proofValue": "zyrpmzxPy2fDzqv9Pgr4XBzX2rys1FDuLNkYRVmhXuyype8fB44qNX8mNnXf99i7x1eSpLdYKNhEKknEJmdGfQ4w" } } ``` Note the proof in the VP establishes the VP was signed by a member of the group thanks to the meaning of "leaf" and "proof" query parameters. And this VP2 from Lars (showing his birthplace using `did:key:lars2`) ```jsonld= { verifiableCredential: [ { "credentialSubject": { "id":"did:merkle:[G1-0]", "claimRoot" : "[C1-0]" }, "proof": { [signed by Swedish govt] } },{ "derivedCredential": { "id":"did:merkle:[G1-2]", "leaf":"birthplace:Karlstad", "proof":"[C1-0]:[C1-2]" } }], "proof":{ "type": "Ed25519Signature2020", "created": "2022-02-25T14:58:43Z", "verificationMethod":"did:[G1-0]?leaf=did:key:Lars2?proof=[G1-0][G1-2]#key1", "proofPurpose": "authentication", "proofValue": "zyrpmzxPy2fDzqv9Pgr4XBzX2rys1FDuLNkYRVmhXuyype8fB44qNX8mNnXf99i7x1eSpLdYKNhEKknEJmdGfQ4w" } } ```

    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