-
Notifications
You must be signed in to change notification settings - Fork 267
Conversation
We also need to be able to setup bridges at runtime, eg when a new private chat group is setup that has its own DHT :) |
# Conflicts: # core_types/src/dna/mod.rs
Codecov Report
@@ Coverage Diff @@
## develop #752 +/- ##
==========================================
Coverage ? 72.43%
==========================================
Files ? 146
Lines ? 4953
Branches ? 0
==========================================
Hits ? 3587
Misses ? 1366
Partials ? 0
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## normalize-dna-module #752 +/- ##
========================================================
+ Coverage 73.53% 73.55% +0.03%
========================================================
Files 140 140
Lines 4733 4737 +4
========================================================
+ Hits 3480 3484 +4
Misses 1253 1253
Continue to review full report at Codecov.
|
@philipbeadle, we talked about your point yesterday. I see setting up these bridges as container concern. The UI that deals with several apps/DNAs/DHTs needs to have admin privileges (or rely on some signalling system) to install private-channel-DNAs. Those channel DNAs define (statically) that they can or need to bridge to some other DNA (Vault or a root chat DNA). They can do that by either locking in the DNA hash of that dependency (v1) or by defining a trait, that is set of functions they expect in their bridge app (follow-up) Does that match with what you're thinking? |
Co-Authored-By: lucksus <[email protected]>
Co-Authored-By: lucksus <[email protected]>
Co-Authored-By: lucksus <[email protected]>
See updated description:
|
@sphinxc0re please re-review. |
@philipbeadle, reusing the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I like this. I think it will work well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Default
implementation for Zome
could be derived automatically, I think 🤔
Update
I've applied @zippy's change request to have a
enum BridgeReference
and I just reusedstruct dna::capabilities::Capability
for theBridgeReference::Capability
variant.This way we can already specify a bridge dynamically through function signatures :)
Addition to DNA spec:
As per discussion with @zippy and @artbrock on 13/12/2018 I've moved the bridge definitions into the zome.