SonokoMizuki
    • 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
    • Make a copy
    • 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 Make a copy 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
    # 鍵の失効(Key Revocation/Rotation)とは? 前提としてRevocation/Rotationは同一視されてしまうケースが多いが 別物として考えた方が良いという提案が上がった。 [need to clarify revocation vs rotation](https://github.com/w3c/did-core/issues/386) 実際、現在のDID Specの`assertionMethod` だとただのRotationなのに過去のVCも無効になってしまうような仕様になっている。これは問題ないかが議論されている(結論は出ていない) ## Rotation ある鍵を使ってメッセージに署名した場合、鍵をRotateさせるとメッセージが無効になるとは言えない。 例えば署名付きメッセージによって、支払いを行うことを約束した場合、Rotateで失効、支払わなくて良いなどになってしまったら、 署名者に歴史を解釈し直す一方的な権力を与えることになってしまう。 未来に適用されるルールを一方的に変更すること。過去は不変。 ## Revocation Revocationとは確定された歴史に、将来の展開に基づいた `新しい意味づけ` をする必要があるという、全当事者による共通の理解が前提となっている操作である。 `"フレッドは本当にこの契約書にサインした。それについて疑問の余地はない。しかし、フレッドはそうしたとき、法的な能力がなかった。したがって、この契約権は無効である--署名の存在を否定するのではなく、この出来事を異なる意味論で見ているからである"` 過去に適用した事象に対する意味を変更すること。全体の合意が必要。 Revocationには2つの意味が存在していることに留意 - 鍵の失効(鍵管理) Key Revocation - 認可ステートメント、クレデンシャルの失効(クレデンシャル管理) Statement revocation # Revocation Methods 上のPR内において結論は出ていないが、W3Cのまとめ役曰く > DLTに保存されるDIDドキュメントは、ある時点の鍵が有効かどうかを確認できるステートAPIのようなものを提供すると思われる。 このようなDLTベースのDID方式では、ある時点のキーの状態を確認することができるので、ある時点でクレデンシャルがすべて有効であったかどうかを知ることができる。 とはいえDIDドキュメントは、「鍵の全履歴を永久に保存する」ことはないし、どこかで過去の鍵の扱いは考えていかないといけない。 と言っている。 ### Revocation Semantics / Revocation in Trustless Systems 過去の状態が取れないDIDの場合、Rule2の短命な認証にするしかない。 https://www.w3.org/TR/did-core/#revocation-semantics トラストレスなIDシステムの場合、VersionIdやversionTimeを含んだClaimを署名&ブロックチェーンでその時刻に鍵がValidかどうかを確認する。 https://www.w3.org/TR/did-core/#revocation-in-trustless-systems ## (前回のおさらい) 認証モデル #### ルール1 ) 永続的な認証モデル 署名の時点で有効な鍵を使用して署名されたステートメントは、別の有効な鍵で署名されたステートメントで上書きするか、または有効な鍵で執行されるまで有効。 鍵を(Rotation)交換したとしても、それ以前の署名付きステートメントの有効性は変わらない。 なので、新しい有効な鍵で過去全てのステートメントを署名し直さなくても良い。 #### ルール2) 短命の認証モデル 署名の時点で有効な鍵を使用して署名されたステートメントは、鍵をローテートしたときに自動的に失効する。この強制失効方式は、トークンベースのセキュリティアプローチ(AccessTokenとか)でよく見られるルールで、与えられた鍵のセットで発行されたすべてのトークンは、鍵をローテーションするときに自動的に失効する。 ルール1)を運用するためには、与えられた鍵で署名されたステートメントの台帳やログを維持するか、少なくともステートメントのログのハッシュに対する暗号的コミットメント(マークルツリーやハッシュ連鎖データ構造)を維持して、ステートメントがその時点で有効な鍵で署名されたことを検証できるようにする必要がある。 したがって、署名されたステートメントのログ(台帳など)を使用していない場合、ルール1)は実行不可能であり、ルール2)が合理的なものである。 #### ルール3) ある認可は永続的であり、ある認可は短命モデル。 このモデルでは、ログに記録された署名付きステートメントのみがルール1)を使用し、その他のすべての署名付きステートメントはルール2)を使用する。ハイブリッドモデル。 署名付きステートメントを提示する場合、ログ内の時刻において有効な鍵が使われたかを確認できるようにしないといけない。 ログの中に鍵のデータがない場合、現在の鍵を確認し、それらが異なる場合、その署名付きステートメントは無効とみなす。 # 下の Revocation / Rotation の手法, 大筋(まとめ) ``` 1) 失効した事実をステート管理し皆が参照できるようにする 1) ステートが肥大しない事 2) 検索が容易な事 (Accumulators) 3) 失効リストを秘匿し、プライバシーが守られる事 (ZKP) 2) 有効期限を柔軟に決めることができる 1) Claimは秘匿化されたまま有効期限だけ更新できる (LVVC) 2) 有効期限内にHolderが期限更新できる(Credential Update) ``` # Revocation / Rotation の手法 ## List Based - Online Certificate Status Protocol(OCSP) Online Certificate Status Protocol(OCSP)は、X.509公開鍵証明書の失効状態を取得するための通信プロトコル https://github.com/Open-Attestation/adr/blob/master/did-certificate-revocation.md  ![](https://i.imgur.com/V7ZCYGl.png) - Key Revocation Lists / Certificate Revocation Lists https://www.rfc-editor.org/rfc/rfc5280 認証局など権威ある組織が証明書や鍵を失効しそのリストを共有する方法 Note: ZKMP(Zero-Knowledge Proofs for Set Membership )とKey Revocation Listsを組み合わせれば、Listを公開せずとも中に含まれているか否か判定できたりする? - Key Event Log (KERI) 発行者が鍵のイベント(生成、回転、失効)をイベントログに記録し、検証者がそのログを検証することで、 VCの公開鍵を確認できる仕組み。イベントログは、不変であり、順序付けられ、時刻同期される(Hashchainなどが使われる)。 ## Cryptographic Accumulators セット内の要素を効率的に表現し、その要素のメンバーシップ(所属)を証明することができるデータ構造。 データの追加と削除、存在していることを証明の3つができる。 - ハッシュベースのアキュムレータ - RSA Accumulators - Bilinear Pairing Accumulators などがある。 証明書の失効リスト (CRL) やオンライン証明書ステータスプロトコル (OCSP) の代替手段として、証明書の失効状態を効率的に管理できる。 List Based形式にメンバーシップ署名の概念を追加して便利にしただけ? [RSA Accumulatorを理解する](https://speakerdeck.com/azuchi/rsa-accumulatorwoli-jie-suru?slide=8) [Cryptographic Accumulators: Definitions, Constructions and Applications](http://www.inf.ufsc.br/~martin.vigil/paper.pdf) ## Credential Update VCや鍵の有効期限を常に設定しておき期間内にVC・鍵更新するするもの `MediatedRefresh2021` など ### Verifiable Credential Refresh > https://w3c-ccg.github.io/vc-refresh-2021/#refresh-protocol Verifiable Credential Refresh 2021 A data model and protocol for refreshing Verifiable Credentials VCの期限切れに対応するためのリフレッシュ方法について書かれている。リフレッシュはVC保持者の事前の同意か発行者の手動で行われる VCの中の `refreshService` を使って実現している ``` "refreshService": { "type": "MediatedRefresh2021", "url": "https://example.edu/refresh/3732", "validAfter": "2021-09-01T19:23:24Z" } ``` このDocでは `MediatedRefresh2021` という期限内のVCをIssuerに送りつけて新しいVCにする方法が書かれている ## Linked Validity Verifiable Credential(LVVC) *これはRevocable VCなのでStatement Revocation。 VCとLVVCの2種類をIssuerが発行し、Verifierは両方検証することでVCの有効性を確認するメソッド。 - LVVC: 発行日 - VC:発行日以外の情報とLVVCの紐付け情報 ポイントとしてIssuerがHolderから現時刻のLVVCを要求された場合、Revokeでなければ返す。Revokeならば返さない。 これによりClaimの署名を変えることがないので、暗号化したままVCを共有できる。 [A new Privacy Preserving and Scalable Revocation Method for Self Sovereign Identity - The Perfect Revocation Method does not exist yet](https://eprint.iacr.org/2022/1658.pdf) ## P2P 上で、かつBloom Filterを使ったRevocation List共有 IssuerがRevocationしたと言う情報を他のノードに伝播させ、それぞれのノードで判定する。 判定データが増えるのでBloom Filterを使いデータ量を減らす。 ### Bloom Filter > 空間効率の良い確率的データ構造であり、あるデータが集合の要素である(集合に含まれている)かどうかの判定に使われる。ただし判定は正確ではなくて、含まれていないのに含まれていると誤って判定すること偽陽性(false positive)の可能性がある。 > [Distributed Attestation Revocation in Self-Sovereign Identity](https://arxiv.org/pdf/2208.05339.pdf) # Library/App ## OpenAttestation https://www.openattestation.com/ DocumentのMerkleRootをContractに書き込み、 Documentの改ざんを防止&状態管理をする。 [demo](https://github.com/Open-Attestation/document-store#interact-with-document-store) ポイントとしてContractの発行者をDNSのTXTレコードを使うことで Domain保有者と紐つける `TXT example.com "openatts net=ethereum netId=3 addr=<DOCUMENT_STORE_ADDRESS>"`

    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