-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collection Reference #10
Comments
@oed @michaelsena updated the schema |
How does the One potentially naive thought that comes to mind is to have an optional "secret" property here. Uncovering the secret would allow access to the underlying data store in reference. The access-control doctype could provide more information about how to decode and use the secret? Is that dangerous? Do doctypes generally store secrets? |
@Schwartz10 yeah I think that's a resonable approach. We've thought about storing symmetric encryption keys within a separate document, encrypted to the public key of the DID. Each symmetric key is then used to encrypt an entry in the collection reference here. |
Closing, stale. |
Simple Summary
This CIP describes a Collection Reference, which contains user-specific information about the data stores defined in a given Collection Definition (CIP-28).
Abstract
The Collection Reference contains user-specific information about data stores defined in a given Collection Definition (CIP-28). The Collection Reference stores things like unique storeID, host, and more that allow third-parties to locate and interact with the user's data. This document is created and updated as the user interacts with the application to which it applies.
Collection References are complimentary to Collection Definitions (CIP-28), which describe the generic data model of data stores referenced in a Collection Reference. Links to both of these documents are stored in a DID's Collections Index (CIP-16), providing a way for user data to be made interoperable across application and platforms.
Motivation
Specification
Schema
The Collection Reference stores a
collectionDef
as a global value, and then stores an array of objects which each includereference
,storeId
,host
, andapplications
.collectionDef
: The DocId of the Collection Definition (CIP-28) to which this Collection Reference applies.reference
: A pointer to a specific entry in the Collection Definition that is possessed by this DID.storeId
: A unique identifier for the user's store. Depending on storeType, this can be the unique address of a peer-to-peer database, an entry in a registry, the ID/hash of a transaction, or the DocId of a Ceramic document.host
: A pointer to a location where the data store is hosted. This can be a centralized service or a decentralized, peer-to-peer network.applications
: A list of applications that have been granted access to the data store.Usage
Encryption:
Data Interoperability Protocol (DIP):
The text was updated successfully, but these errors were encountered: