KeychainMDIP / kc

Reference implementation of the Multi Dimensional Identity Protocol (MDIP)
MIT License
9 stars 4 forks source link

Update vaults #417

Closed macterra closed 3 days ago

macterra commented 4 days ago

Add a vault type to encrypted DIDs but make it backwards compatible with existing vaults

macterra commented 3 days ago

Already done under the label encrypted, e.g.

{
    "@context": "https://w3id.org/did-resolution/v1",
    "didDocument": {
        "@context": [
            "https://www.w3.org/ns/did/v1"
        ],
        "id": "did:test:z3v8Auafk74g6Gg8A3k9uYtMURmQ5uCikfaKRmSNiqLCLQJtGqD",
        "controller": "did:test:z3v8AuafCDJ7Nj5pb2yWQUFpbPzqqnvm9CvxeV6e5KyG69tJv7s"
    },
    "didDocumentMetadata": {
        "created": "2024-11-19T20:17:10.649Z",
        "version": 1,
        "confirmed": true
    },
    "didDocumentData": {
        "encrypted": {
            "sender": "did:test:z3v8AuafCDJ7Nj5pb2yWQUFpbPzqqnvm9CvxeV6e5KyG69tJv7s",
            "created": "2024-11-19T20:17:10.648Z",
            "cipher_hash": "5696962de8fad2c3db0292d1ea651f811139cf270c264d227a2f25e8b4a8a8a0",
            "cipher_sender": "Tsa8jlLcj3SmAocyflia1N1mecjFb4B_0wDnw27jnpo9dKqbZOFjYqN1ZOleR3Mm9z5_U4h9-q2mAZWmczR4-_xiXY-q7Uwo1y_pXtj6YNJmr4ZDh_qn60UyqlZQjE8IujjIPJsMy03NxcnHAHHX3f0urM83K2yBBdREwsbzsWBbw74uyXs2kXGCZst58E6Ibr0vtKlep0eEToYoUydtKzf0zVyE9nxe6PLY96riWA-4b7in9fEeq9nFaXKme2LoaXX2qIobr5yw8onfPjNDsK0y6-8WqwFk7ILmpMb-1u-8hrxfNTPj3qxQDf7rWfzlPA8q1OVAp-t_8owRpc5SnJqWMLXKW7tRDWQm83M2yd5QlQULoGtyxLdKUBcurCDBODYot0F-WrkUg1at9vkhLeUvohRHntvdDaemrN6XHuXqgzv9MD38R19-AOM8QhxlPBFrK9ZBbPECKXASW844v2F-yxSE1hVo-HEzKU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5TrgMCYcMMpRLt1RrWxv-C0-6P-qwfFKo6OxCZImyWSY4rYGehuvN6_XgGiZtl4ugSaCeeO-eu_WeHJnvkqaXWdXaXLTSzSgQblpLaKLFpWgXhIO-HnUt2Z7ZEIjXlYFaOPX3zNLN47dR7guHITLhRKXbDiT-bV__C627sZeOd-o1Fo71NVr0qCHAwCNhjFEBIgPNm5i6aLB7BjSWhdicdlgXEA6AC9P3EHzQXlxnSjlyt8g_zg8jghcAdQ5C-AhN99QUx-2gHLj9vehkhQbWCucaDPjq1ee5nYvY3zqeEpNT1Bupl5-2xIv7Cz_54AEBHAADP3ihn7p33wtwfuo28fvLm4FvqhaqWmyjPqi-xeJ3yqQhgPBte6lWjkox8Lwzi6i11M92_Z0inJNjYdSLD4155E1A9f4F42Lce34cOuRGV6JQt8_7nMNlwug1e23F8Q_nY3bOWc1qMGe5pYopM3TTmYleGjkxdnmbcb25s2Glv-FyIJGDy3kT6Q8qscFSIOtJpXAqTmzAm3YQ20Kq5u90FyaU79Mne2YmUY3e0SFvwc1YEqdX0fANzQ58hWhP5VefgAkNsBBFcnJn-qUoLNTYwpoq5_OVBxPPdKCh73WdOGXX5yML03GncdpsVyTNV6"
        }
    },
    "mdip": {
        "version": 1,
        "type": "asset",
        "registry": "hyperswarm"
    }
}