Skip to content
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

[DRAFT] Create TrustGraph #24

Open
harlantwood opened this issue Mar 8, 2022 · 0 comments
Open

[DRAFT] Create TrustGraph #24

harlantwood opened this issue Mar 8, 2022 · 0 comments

Comments

@harlantwood
Copy link
Member

harlantwood commented Mar 8, 2022

Background Context

A TrustGraph is

  • initiated from a collection of TAs - generally to people or orgs in order to follow their webs of trust
  • [someone] rolls up the network into top level TAs for that TG (ongoing)

A TrustGraph:

  • public viewable or private viewable
  • private viewing is by invite code/cap tokent
  • has an underlying DHT
    • or two: 1 for read, one for write ? Or use validations/cap tokens for these?

Rollups

  • an agent could only roll up what is visible to them
  • trust atoms that are an amalgam value for each target / content combination
    • maybe extra store full original TA list?

Code Sketch

This is a sketch only... also important that it's similar to TrustAtom#create

let trust_graph_atoms: Vector<TrustAtom> = vec![
  // TrustAtom where target = Alice's TrustGraph
  // TrustAtom where target = Bo's TrustGraph
  // TrustAtom where target = New York Times' TrustGraph
]

// within hc_zome_trust_graph:

pub fn create_raw(
  private: bool,
  trust_atoms: Vec<TrustAtomInput>
)

// within hc_zome_trust_graph:
pub fn create_from_atoms(
  private: bool,
  trust_atoms: Vec<TrustAtomId>
)

struct TrustGraph {
  trust_atoms: Vec<TrustAtomId>
}
@harlantwood harlantwood changed the title Create TrustGraph [DRAFT] Create TrustGraph Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant