trustgraph / trustgraph-holochain

Apache License 2.0
24 stars 3 forks source link

[DRAFT] Create TrustGraph #24

Open harlantwood opened 2 years ago

harlantwood commented 2 years ago

Background Context

A TrustGraph is

A TrustGraph:

Rollups

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>
}