-
-
Notifications
You must be signed in to change notification settings - Fork 55
Key structure #132
Comments
One worry with (2) is that IPFS documents sometimes take a long time to retrieve, and doing so for every entry could add significant overhead. For (3): A naive (not necessarily wrong) approach is just:
How can we make this more self-describing/universal? |
One approach is to change the line here (working off the
to
Each ACL must add an appropriate key property. The This would allow for custom ACLs to easily add their own key properties as needed. In that case, maybe the naive approach I mentioned in my previous comment would work fine. |
@thiagodelgado111 pointed out this XML signature format, and the JWT format seems relevant as well. Also, a signature is a hash, no? Hence perhaps we could use the multihash format, in conjunction with custom properties ( Just brainstorming here. |
First, a quick recap.
OrbitDB is progressing towards dynamic access, aka dynamic permissions. As part of this effort, multiple access controller types need to be supported. Currently OrbitDB uses an IPFS-based access controller, and we would like to support OrbitDB-based and smart-contract-based access controller.
So far so good. To support a smart contract ACL, we have a scheme like this: right now, every entry has a key, which is used to sign the contents of the entry. When a peer receives this update, they use the key to verify that the entry was properly signed.
A smart contract ACL would also like to include some piece of info signed by a key which is in the smart contract. For instance, the smart contract has a user's wallet public key. The user signs the OrbitDB (ODB) public key with that wallet, resulting in a
chainSignature
.Just as we verify the entry's signature with the key, we also want to verify the
chainSignature
with thechainKey
.That was the recap, here is the problem. This
chainSignature
andchainKey
have to be stored somewhere so that peers can use them. Where should we store them?key
property.key
property. Optimally, the object would sort of be self-describing, in typical IPFS style. Multikey? Multisig?The text was updated successfully, but these errors were encountered: